From 787ca261473ecd7cf5e4ba0a6e89d0e7778b9ac6 Mon Sep 17 00:00:00 2001 From: MAB Date: Mon, 22 Feb 2021 20:56:34 -0600 Subject: [PATCH] Init ... --- services/rest_api/router/login/login.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/rest_api/router/login/login.js b/services/rest_api/router/login/login.js index c6c4a23..177fc29 100644 --- a/services/rest_api/router/login/login.js +++ b/services/rest_api/router/login/login.js @@ -4,8 +4,22 @@ const router = new Router({ prefix: '/login', }); -router.post('/challenge', () => { +router.get('/', (ctx, next) => { + ctx.body = { + error: 0, + flash: 'welcome to login, please set email and password...', + data: null, + }; + next(); +}); +router.post('/challenge', (ctx, next) => { + ctx.body = { + error: 0, + flash: 'welcome to challenge...', + data: null, + }; + next(); }); module.exports = router;