Created
January 23, 2019 13:52
-
-
Save pietro-rutzen/bad68a6f42c88b2a1b87fe35aa7f820c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
name: 'status', | |
construct (self, options) { | |
// esta rota se torna "/modules/status/subscriptions" - "/modules/my-module/my-route" | |
console.log(req.user) | |
self.apos.app.post('/subscriptions', (req, res) => { | |
console.log(req.body) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment