Skip to content

Commit

Permalink
Enable test route in index.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sowri19 committed Feb 20, 2024
1 parent cbf6c82 commit 1fd0f1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express from "express";
// import adminRoutes from "./routes/routers.mjs";
// import oceanDataRoutes from "./routes/routers.mjs";
// import test from "./routes/routers.mjs";
import test from "./routes/routers.mjs";
import serverless from "serverless-http";

const app = express();
Expand All @@ -10,10 +10,10 @@ app.use(express.json());
// app.use("/wavewise-backend", adminRoutes);
// app.use("/wavewise-backend", oceanDataRoutes);

// app.use("/", test);
app.use("/", test);

app.get("/wavewise-backend", (req, res) => {
res.json({ message: "Welcome to WaveWise Backend" });
});
// app.get("/wavewise-backend", (req, res) => {
// res.json({ message: "Welcome to WaveWise Backend" });
// });

export const handler = serverless(app);

0 comments on commit 1fd0f1c

Please sign in to comment.