visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

Allow all request methods to specify format #16

Closed 5at closed 13 years ago

5at commented 13 years ago

This changes allows ALL request methods to specify format.

From what I gather, besides 'GET' the only other methods supported by this code is 'PUT', 'POST' and 'DELETE' - the methods supported appears to be only defined by the mapping routine 'mapDefaultAction'.

The format specifier is useful to formulate the type and format of the reply to the request. It does not influence the interpretation of the incoming body content, it does not change that behaviour.