express-accepts-exact
Simple express middleware for filtering routes by exact matches of Accepts header.
Installation
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install express-accepts-exact --save
Example
app;
let acceptExact = ;app;
let acceptExact = ;let acceptExperimental = ; router;router; // Fallback to non experimental version.
API
acceptExact(paths);
paths
Must contain a string or an array of strings.