Created
August 1, 2021 14:18
-
-
Save fiqryq/0246e5364317ca0c7b1989b386dbcb62 to your computer and use it in GitHub Desktop.
File medium gist express router
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 express = require("express"); | |
const router = express.Router(); | |
router.get("/", (req, res) => { | |
res.send("Hello World"); | |
}); | |
router.get("/about", (req, res) => { | |
res.send("Hello from about"); | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment