Will change the request's Accept
header to application/json
if the
URL ends with .json
, or to application/xml
if the URL ends with .xml
.
npm install connect-acceptoverride
var acceptOverride = require('connect-acceptoverride');
app.use(acceptOverride());