app.js 277 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 let express = require('express'); let app = express(); let bodyParser = require('body-parser'); let routes = require('./routes'); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); app.get('/api/home', routes.home); let server = app.listen(80);