module.exports = function(app) {
app.get('/users', require('../controllers/user').CRUD.findAll);
app.get('/users/:id', require('../controllers/user').CRUD.findById);
app.post('/users/login', require('../controllers/user').handlers.login);
};
require('./routes')(app);
exports.handlers = {
login: function(req, res, next){
К ПРИМЕРУ
req.json(req.params);