mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
283 B
12 lines
283 B
10 years ago
|
|
||
|
var pkg = require('../package');
|
||
|
|
||
|
function middleware(req, res, next){
|
||
|
res.header('Charset','utf8');
|
||
|
res.header('Cache-Control','public,max-age=60');
|
||
|
res.header('Server', 'Pelias/'+pkg.version);
|
||
|
res.header('X-Powered-By', 'mapzen');
|
||
|
next();
|
||
|
}
|
||
|
|
||
|
module.exports = middleware;
|