Created
July 6, 2020 13:16
-
-
Save kianaditya/4e8d62d36fc72222e2163de925dc4fa1 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
// /routes/posts.js | |
const express = require('express') | |
const router = express.Router() | |
const postsController = require('../controllers/posts') | |
router.get('/', postsController.index) | |
router.get('/:id', postsController.show) | |
module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment