Skip to content

Commit

Permalink
changed js file
Browse files Browse the repository at this point in the history
  • Loading branch information
JATIN-RAGHAV committed Jun 4, 2024
1 parent 20b574f commit d27e3a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/dir/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const corsOptions = {
origin: 'https://jatin-raghav.vercel.app/', // Allow only this origin
optionsSuccessStatus: 200 // Some legacy browsers choke on 204
};
app.use((req, res, next) => {
res.json({ message: 'Hello World' });
});
app.use((0, cors_1.default)());
app.use(express_1.default.json());
app.use(route_1.default);
Expand Down

0 comments on commit d27e3a3

Please sign in to comment.