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