Added loggers sample

This commit is contained in:
Daniel
2022-11-28 17:54:32 +01:00
parent e6584c4c15
commit d07b20a689
10 changed files with 213 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
module.exports = class say {
hello(req) { return `Hello ${req.data.to}!` }
hello(req) {
let {to} = req.data
if (to === 'me') to = require('os').userInfo().username
return `Hello ${to}!`
}
}