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

9 lines
211 B
JavaScript
Raw Normal View History

2022-06-14 08:16:41 +00:00
const packageJson = require('../../../package.json');
module.exports = function(options) {
return function(req, res, next) {
res.set('Salix-Version', packageJson.version);
next();
};
};