Created
June 16, 2020 10:12
-
-
Save kianaditya/1ab89548da987d5e6c7bdd75569268b5 to your computer and use it in GitHub Desktop.
medium express article two
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
| // routes/posts.js | |
| // /routes/posts.js | |
| const express = require('express') | |
| const router = express.Router() | |
| const postsController = require('../controllers/posts') | |
| router.get('/', postsController.getAllPosts) | |
| module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment