Skip to content

Instantly share code, notes, and snippets.

@ggondim
Created June 18, 2020 00:07
Show Gist options
  • Save ggondim/458bbbe040d0f28366dec36fa9ee09a1 to your computer and use it in GitHub Desktop.
Save ggondim/458bbbe040d0f28366dec36fa9ee09a1 to your computer and use it in GitHub Desktop.
Azure Monofunction example - Separated routes module
const userController = require('../controllers/user.controller');
module.exports = [{
path: '/users/:id',
methods: ['GET'],
run: userController.getUser,
}, {
path: '/users',
methods: ['POST'],
run: userController.createUser,
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment