var express = require('express');
var app = express();
var router = express.Router();
app.route('/user')
.get(function (req, res) {
res.send('Get a random user')
})
.post(function (req, res) {
res.send('Add a user')
})
.put(function (req, res) {
res.send('Update the user details')
})
.delete(function (req, res) {
res.send('Delete a user')
});