add get for /login
This commit is contained in:
parent
fe6f05264f
commit
a8e4961a71
@ -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');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user