Skip to content

Commit

Permalink
added get route for '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshkothadi committed Mar 7, 2021
1 parent 8a9df57 commit f3e9966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/env-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PORT = 5000
6 changes: 5 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ const port = process.env.PORT || 5000;

app.listen(port, () => {
console.log(`Listening on port 5000`)
})
})

app.get('/', (req, res) => {
res.send("Hello");
} )

0 comments on commit f3e9966

Please sign in to comment.