Now write your REST APIs with ease.
npm i --save node-rest-server
const Server = require('node-rest-server');
const server = new Server();
server.routes([{
action: 'GET',
path: '/',
handler: (req, res, next) => {
res.send('OK');
}
}]);
server.start();