Created
February 3, 2018 05:34
-
-
Save vickonrails/501989486c03df04b8cf8395a96cb452 to your computer and use it in GitHub Desktop.
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'), | |
| router = express.Router(); | |
| //making use of normal routes | |
| router.get('/john',(request,response)=>{ | |
| response.send('Home of user'); | |
| }); | |
| router.get('/mark',(request,response)=>{ | |
| response.send('Home of user'); | |
| }); | |
| //exporting thee router to other modules | |
| module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment