-
-
Save amandeepmittal/6fb1e5de718572b91d63d72853d2a780 to your computer and use it in GitHub Desktop.
This file contains 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 todosController = require('../controllers/todos.js'); | |
module.exports = app => { | |
app.get('/api', (req, res) => | |
res.status(200).send({ | |
message: 'Create Your Own Todo Lists API' | |
}) | |
); | |
app.post('/api/todos', todosController.create); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment