UNPKG

esrol-router

Version:

You can create new routes, set allowed ways of reaching them, handle requests, get information regarding those routes, and set middleware.

12 lines (10 loc) 201 B
'use strict'; module.exports = { url: '/hello-world', getMultipleRecords: function(req, res) { return 'hello-world'; }, getSingleRecord: function(req, res) { return req.record; } };