salix/loopback/server/middleware/salix-version.js

9 lines
211 B
JavaScript

const packageJson = require('../../../package.json');
module.exports = function(options) {
return function(req, res, next) {
res.set('Salix-Version', packageJson.version);
next();
};
};