Open alganet opened 12 years ago
This should be done by the conneg routine shouldn't?
Content negotiation is the preferred way of doing this, IMO, but I suppose if the request is for .html
or .json
or .xml
, then regardless of the Accept
header, we could use a routine map to return the proper content type for the extension?
A routine that can map routes to specific rendering engines (such as template engines or serializers).