Skip to content

Commit

Permalink
refactor: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfrosh committed Nov 21, 2023
1 parent ae2d806 commit 61cb13b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cors());

// unused in Azure
// app.use(express.static(path.join(__dirname, "/__BUILD"))); // React build

const apiRoutes = require("./routes/api");
const authRoutes = require("./routes/auth");

Expand Down Expand Up @@ -101,12 +98,6 @@ app.use("/v2/", apiLimiter);
app.use("/v2", apiRoutes);
app.use("/auth", authRoutes);

// Handles React frontend requests
// unused in Azure
// app.get("*", (req, res) => {
// res.sendFile(path.join(__dirname + "/__BUILD/index.html"));
// });

async function start() {
await db.connectDb();
app.listen(server_port, () =>
Expand Down

0 comments on commit 61cb13b

Please sign in to comment.