From 58191975b9b844610217dee410b7d5ae2051e6ba Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 23 Jul 2019 09:27:34 -0700 Subject: [PATCH] stubbed /login page for redirect base login flow --- app/routes.js | 1 + server/routes/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/app/routes.js b/app/routes.js index 54a199a2..f86d8dc7 100644 --- a/app/routes.js +++ b/app/routes.js @@ -13,6 +13,7 @@ module.exports = function(app = choo()) { app.route('/oauth', function(state, emit) { emit('authenticate', state.query.code, state.query.state); }); + app.route('/login', body(require('./ui/home'))); app.route('*', body(require('./ui/notFound'))); return app; }; diff --git a/server/routes/index.js b/server/routes/index.js index 44572348..71e20409 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -79,6 +79,7 @@ module.exports = function(app) { app.get('/error', language, pages.blank); app.get('/oauth', language, pages.blank); app.get('/legal', language, pages.legal); + app.get('/login', language, pages.index); app.get('/app.webmanifest', language, require('./webmanifest')); app.get(`/download/:id${ID_REGEX}`, language, pages.download); app.get('/unsupported/:reason', language, pages.unsupported);