jaysylvester / citizen

Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.
MIT License
100 stars 7 forks source link

Deprecate format URL parameter #88

Closed jaysylvester closed 3 years ago

jaysylvester commented 3 years ago

Now that citizen properly parses and follows the Accept request header, it makes more sense to rely upon that to determine the output format than a URL parameter.

Remove all references to params.url.format.

Requirement: This must be completed in concert with #85, because without url.format, JSON routes will no longer be unique; a single URL will provide multiple formats, so a cached route would need to render and store all legal formats simultaneously.