UNPKG

dorm-node

Version:

Library for creating and managing arbitrary object models and their relationships, and the data used by those models.

10 lines (9 loc) 297 B
module.exports = function(app, dorm) { app.get('/dorm', function(req, res){ //TODO: check user is logged in and forward to dashboard res.render(dorm.basePath + '/views/dashboard'); }); app.get('/dorm/dashboard', function(req, res){ res.render(dorm.basePath + '/views/dashboard'); }); };