app.js 285 Bytes
const express = require('express');
const bodyParser = require('body-parser')
const app = express();
const api = require('./routes/index');

app.use(bodyParser.json());
app.use('/api', api);

const port = 3001;
app.listen(port, () => console.log(`Listening on port ${port}`));