Skip to content

Instantly share code, notes, and snippets.

@pietro-rutzen
Created January 23, 2019 13:52
Show Gist options
  • Save pietro-rutzen/bad68a6f42c88b2a1b87fe35aa7f820c to your computer and use it in GitHub Desktop.
Save pietro-rutzen/bad68a6f42c88b2a1b87fe35aa7f820c to your computer and use it in GitHub Desktop.
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