From df2cdab18047d1a117d04b7c297d2678cd960728 Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 16 Sep 2019 00:00:00 +0000 Subject: [PATCH] Remove old mail login API --- src/api/auth.ts | 18 ------------------ 1 file changed, 18 deletions(-) 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)) {