text: const path = require("path");
  const router = require("express").Router();
  const apiRoutes = require("./api");
  const adminRoutes = require("./admin")
  
  // API Routes
  router.use("/api", apiRoutes);
  router.use("/admin", adminRoutes);
  
  // If no API routes are hit, send the React app
  router.use(function(req, res) {
    res.sendFile(path.join(__dirname, "../client/build/index.html")); //Local routes
    // res.sendFile(path.join(__dirname, "client","build", "index.html")); virtual machine code
  });
  
  module.exports = router;
  