const express = require('express'); const app = express(); const router = require('./routes'); const port = 8000; app.use('/api',router); app.listen(port, () => { console.log(`Listening on port ${port}`); });