text: var express = require("express");
  const htmlRoutes = require('./routes/htmlRoutes');
  const apiRoutes = require('./routes/apiRoutes.js');
  
  var app = express();
  var PORT = process.env.PORT || 3000;
  
  app.use(express.urlencoded({extended: true}));
  app.use(express.json());
  app.use(express.static('public'));
  app.use("/api", apiRoutes);
  app.use(htmlRoutes);
  
  
  app.listen(PORT, () => {
      console.log("App listening on PORT " + PORT);
  });