Skip to content

Instantly share code, notes, and snippets.

@nodirshox
Created November 23, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodirshox/9d2c06ef54a1f3ddbcfafe1ba7d56e94 to your computer and use it in GitHub Desktop.
Save nodirshox/9d2c06ef54a1f3ddbcfafe1ba7d56e94 to your computer and use it in GitHub Desktop.
Adding router
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