salix/services/loopback/server/middleware/datetime.js

5 lines
123 B
JavaScript

module.exports = function() {
console.log('Date time middleware triggered.');
res.json({datetime: new Date()});
};