Last active
February 3, 2018 05:52
-
-
Save vickonrails/02d036c60e11ae47e10278fd5f683706 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'), | |
| app = express(); | |
| app.use('/users',require('./basic_router')); | |
| app.use('/api',require('./api_route')); | |
| app.get('/posts/newpost',(request,response)=>{ | |
| response.send('new post'); | |
| }); | |
| app.listen(3000,()=>console.log('Express server started at port 3000')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment