Created
September 10, 2020 08:58
-
-
Save fredriccliver/3baea7c646cf7602c558de56d16c0f19 to your computer and use it in GitHub Desktop.
/functions/user.js
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 router = require("express").Router() | |
router.get("/list", (req, res) => { | |
res.send(`this is /list on userRoute`) | |
}) | |
router.get("/", (req, res) => { | |
res.send(`this is / on userRoute`) | |
}) | |
module.exports = router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment