diff --git a/src/api/auth.ts b/src/api/auth.ts index 7c2cc9f..c87be50 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -29,24 +29,6 @@ import { export const createAuthRouter = (database: Database) => { const router = Router() - router.post('/send-mail-login-code', json(), async (req, res, next) => { - try { - if (!isSendMailLoginCodeRequest(req.body)) { - throw new BadRequest() - } - - const { mailLoginToken } = await sendLoginCode({ - mail: req.body.mail, - locale: req.body.locale, - database - }) - - res.json({ mailLoginToken }) - } catch (ex) { - next(ex) - } - }) - router.post('/send-mail-login-code-v2', json(), async (req, res, next) => { try { if (!isSendMailLoginCodeRequest(req.body)) {