uniScore/routes/routes.js

15 lines
352 B
JavaScript
Raw Normal View History

2017-03-12 16:27:04 +00:00
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Muhahaha' });
});
router.get('/admin', function(req, res, next) {
//res.send('respond with a resource');
res.render('admin', { title: 'Muhahaha ADMIN' });
});
module.exports = router;