const express = require('express');
const morgan = require('morgan');

const app = express();
app.use(morgan('combined'));
app.get('/', (request, response) => {
  response.status(501).json(null);
});

const port = process.env.PORT || 8888;
const server = app.listen(port, () => {
  console.log('Listening on port ' + server.address().port + '...');
});

@@ -72,17 +72,17 @@
 const ap
-p
+i
  = expre
@@ -87,44 +87,22 @@
 ress
-();%0Aapp.use(morgan('combined')
+.Router(
 );%0Aap
-p
+i
 .get
@@ -168,24 +168,99 @@
 null);%0A%7D);%0A%0A
+const app = express();%0Aapp.use(morgan('combined'));%0Aapp.use('/api', api);%0A%0A
 const port =

Move the API to /api