visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

Some small changes to make it easier to 'subclass' and specialize Resource #78

Open emmanuel opened 11 years ago

emmanuel commented 11 years ago

I want to have a variant of Resource that accepts middleware (authenticate & persistence keys) and validates incoming JSON according to a schema (schema key), in order to emulate some of the features of Percolator. This was approximately the minimum way I could see how to do that.