Created
January 20, 2019 19:15
-
-
Save funador/df945aa4add6f7f5f4766843354ec6bd 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
| const router = require('express').Router() | |
| const controllers = require('./controller') | |
| router.get('/', controllers.getTodos) | |
| router.post('/', controllers.addTodo) | |
| router.delete('/:id', controllers.deleteTodo) | |
| router.put('/:id', controllers.updateTodo) | |
| module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment