adejs/controllers/auth/views.js

10 lines
216 B
JavaScript

const getUrl = require('create-url').getUrl;
module.exports.login = function(req, res, render) {
render('login.pug');
}
module.exports.logout = function(req, res, render) {
res.redirect(getUrl("index"));
}