node-restful
node-restful copied to clipboard
Use same routing API as express
Should be able to define userroutes by using
model.get('path_to_route', true, function(req, res, next) {})
mode.get('path_to_another_route', { detail: true }, function(req, res, next) {});
and other HTTP Verbs
Of course, these are just syntactical sugar for
model.route('path_to_route', 'get', function(req, res, next) {..})
and should be easy to implement