Created
June 15, 2020 09:55
-
-
Save kianaditya/0075daaa910b8579ab92e2b028cac111 to your computer and use it in GitHub Desktop.
express medium article part 1
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() | |
router.get('/', (req, res, next) => { | |
res.send('You have hit GET /posts endpoint') | |
}) | |
module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment