Boss Machine server not found

I don’t understand why the severs is not wanting to start. I looked at other people’s posts on here with similar problems and tried to implement their solution to no avail.

what I am seeing:


Screen Shot 2021-11-30 at 9.29.18 PM

my code:
server.js

const express = require('express');
const app = express();
const bodyParser = require('body-parser')
const cors = require('cors')
const apiRouter = require('./server/api');

module.exports = app;

/* Do not change the following line! It is required for testing and allowing
*  the frontend application to interact as planned with the api server
*/
const PORT = process.env.PORT || 4001;

//the server Boilerplate
app.use(bodyParser.json())
app.use(cors())
app.use(express.static('public'));

// Mount your existing apiRouter below at the '/api' path.
app.use('./server/api.js',apiRouter)

// This conditional is here for testing purposes:
if (!module.parent) { 
  // Add your code to start the server listening at PORT below:
  
  app.listen(PORT, () => {
    console.log(`Server listening at http://localhost:${PORT}`)
  })
  }
 

api.js

const express = require('express');
const apiRouter = express.Router();



 //mounting minions to a path
 const minionRouter = require('./minions');
 apiRouter.use('/minions' , minionRouter);





module.exports = apiRouter;

minions.js

const express = require('express');
const minionRouter = express.Router({mergeParams: true});

const { 
    addToDatabase,
    getAllFromDatabase,
    getFromDatabaseById,
    updateInstanceInDatabase,
    deleteFromDatabasebyId,
  } = require('./db');

 
  
  // Assemble the Minions!
minionRouter.get('/' , (req,res,next) => {
    console.log('I got to here!')
    const minions = getAllFromDatabase('minions')
    res.status(200).send(minions)
   })
  
   module.exports = minionRouter;