Express/Connect middleware to set response headers based on globs
npm install set-headers --save
var express = require('express');
var setHeaders = require('set-headers');
var app = express();
app.use(setHeaders({
'/some/path/**/*.json': {
'Content-Type': 'application/json'
}
}));
app.listen(3000, function () {
});
npm install
npm test