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