Created
November 23, 2020 16:25
-
-
Save nodirshox/9d2c06ef54a1f3ddbcfafe1ba7d56e94 to your computer and use it in GitHub Desktop.
Adding router
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
const express = require("express") | |
const router = express.Router() | |
router.use('/', function(req, res) { | |
res.send('Hello World!') | |
}); | |
module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment