Ben Augarten

Results 17 issues of Ben Augarten

Set up a before/after route for the entire resource or path in resource. i.e. ``` js model = restful.model(..); model.before('*', function(req, res, next) {..}); model.before('path.*', function(req, res, next) {}); model.before('path.*',...

enhancement
1 - Ready

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

enhancement
1 - Ready

Expose common CRUD operations to user defined routes through ``` model = restful.model(...) model.route('anotherget', { detail: true, handler: function(req, res, next) { model.get(req.params.id, function(err, model) {..}) model.post(req.params.id, { data: value...

enhancement
1 - Ready

Should respond to a GET or POST parameter for format=json,xml,html HTML responses will rely on express's internal templating and render templates from a default directory, which will be a parameter...

enhancement
1 - Ready

Should add option to specify default response formats, either HTML, JSON, XML and support for XML in general

enhancement

Should add an option to add non-strict routes for ``` //new // renders the create form //:id/edit // renders the edit form //:id/destroy // instead of DELETE //:id/update // instead...

enhancement

Trigger an event on fileupload progress so users can calculate things like ETA and rate of upload