Author: Not specified Language: javascript
Description: (v32) Timestamp: 2018-06-17 11:29:35 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
// Example of configuring a controller
let todoController = TodoController()
router.get("todos", use: todoController.index)
router.post("todos", use: todoController.create)
router.delete("todos", Todo.parameter, use: todoController.delete)
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply