index.js 312 Bytes
var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('base', { title: 'Express' });
});
router.get('/category',function(req,res){
  var location = req.query.location;
  res.render('category');
});
module.exports = router;