Skip to content

Commit 505ca98

Browse files
Update app.js
1 parent 2f28f13 commit 505ca98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ app.use(cors()); // Use the CORS middleware
1515

1616
app.use("/static", express.static(path.join(__dirname, "static")));
1717

18+
app.get("/test", (req, res) => {
19+
return res.json({success:true,message:"Hello World !!"})
20+
})
21+
1822
app.get("/", (req, res) => {
1923
res.sendFile(path.join(__dirname, "templates", "index.html"));
2024
});

0 commit comments

Comments
 (0)