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

4 lines
122 B
JavaScript

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