Skip to content

Commit

Permalink
Added new docs route
Browse files Browse the repository at this point in the history
  • Loading branch information
rudSarkar committed Jan 20, 2025
1 parent 5adde12 commit df4dcda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ app.get("/:name", (req, res) => {
res.send(`Hello ${name}`);
});

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

const port = process.env.PORT || 3000;
module.exports = app.listen(port, () =>
console.log(`Listening on port ${port}...`)
Expand Down

0 comments on commit df4dcda

Please sign in to comment.