add get for /login

This commit is contained in:
Robert Richter 2019-01-13 16:56:42 +01:00
parent fe6f05264f
commit a8e4961a71

View File

@ -66,6 +66,13 @@ module.exports = function(app, sql, app_cfg) {
}); });
}); });
// get /login
app.get('/login', function(req, res) {
res.render('login', {
title: 'Login'
});
});
// catch 404 and forward to error handler // catch 404 and forward to error handler
app.use(function(req, res, next) { app.use(function(req, res, next) {
var err = new Error('Not Found'); var err = new Error('Not Found');