fix(frontend): remove unused handler

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-08-26 18:47:50 +02:00
parent 3d4f8276ae
commit 7b3c217470

View file

@ -1,24 +0,0 @@
/*
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { Alias, NewAliasDto } from '../../../../api/alias/types'
import { HttpMethod, respondToMatchingRequest } from '../../../../handler-utils/respond-to-matching-request'
import type { NextApiRequest, NextApiResponse } from 'next'
const handler = (req: NextApiRequest, res: NextApiResponse) => {
respondToMatchingRequest<Alias>(
HttpMethod.POST,
req,
res,
{
name: (req.body as NewAliasDto).newAlias,
noteId: (req.body as NewAliasDto).noteIdOrAlias,
primaryAlias: false
},
201
)
}
export default handler