node-restful icon indicating copy to clipboard operation
node-restful copied to clipboard

Use same routing API as express

Open baugarten opened this issue 12 years ago • 1 comments

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

baugarten avatar Mar 30 '13 06:03 baugarten

Of course, these are just syntactical sugar for

model.route('path_to_route', 'get', function(req, res, next) {..})

and should be easy to implement

baugarten avatar Mar 31 '13 03:03 baugarten