From 7b3c217470b6c3ee2077be6a65566af3d8ee076f Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sat, 26 Aug 2023 18:47:50 +0200 Subject: [PATCH] fix(frontend): remove unused handler Signed-off-by: Tilman Vatteroth --- .../pages/api/mock-backend/private/alias.ts | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 frontend/src/pages/api/mock-backend/private/alias.ts diff --git a/frontend/src/pages/api/mock-backend/private/alias.ts b/frontend/src/pages/api/mock-backend/private/alias.ts deleted file mode 100644 index 6a4544602..000000000 --- a/frontend/src/pages/api/mock-backend/private/alias.ts +++ /dev/null @@ -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( - HttpMethod.POST, - req, - res, - { - name: (req.body as NewAliasDto).newAlias, - noteId: (req.body as NewAliasDto).noteIdOrAlias, - primaryAlias: false - }, - 201 - ) -} - -export default handler