Skip to content

Instantly share code, notes, and snippets.

@vickonrails
Last active February 3, 2018 05:52
Show Gist options
  • Select an option

  • Save vickonrails/02d036c60e11ae47e10278fd5f683706 to your computer and use it in GitHub Desktop.

Select an option

Save vickonrails/02d036c60e11ae47e10278fd5f683706 to your computer and use it in GitHub Desktop.
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