Skip to content

Commit

Permalink
get router added for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeistxx committed Aug 19, 2023
1 parent 636de83 commit ff84dd5
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ cloudinary.config({
api_secret: process.env.API_SECRET,
});

connectDB();

const app = express();
app.use(
express.json({
Expand All @@ -30,8 +28,17 @@ app.use(
})
);

app.get("/api/v1", (req, res) => res.send('Hello from SCCSE-AOT'));
app.use("/api/v1/member", memberRoute);

app.listen(port, () => {
console.log("server is running on " + port);
});

connectDB()
.then(() => {
app.listen(port, () => {
console.log("server is running on " + port);
});
})
.catch(() => {
console.log("Couldn't start server");
})

1 comment on commit ff84dd5

@vercel
Copy link

@vercel vercel bot commented on ff84dd5 Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.