You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
379 B
18 lines
379 B
var express = require('express');
|
|
var controller = express.Router();
|
|
|
|
controller.get('/', function(req, res){
|
|
console.log(req.query.foo);
|
|
res.send('run index page');
|
|
});
|
|
|
|
controller.get('/:id', function(req, res){
|
|
res.send('run show page for id: ' + req.params.id);
|
|
});
|
|
|
|
controller.get('/new', function(req, res){
|
|
res.send('run new page');
|
|
});
|
|
|
|
module.exports = controller;
|