Skip to content

Commit

Permalink
Retain old endpoint for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 4, 2024
1 parent 1e50918 commit a3b98c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ app.get("/users", async (_req, res) => {
res.json({ students, educators });
});

app.get("/students/:identifier", async (req, res) => {
app.get([
"/students/:identifier",
"/student/:identifier", // Backwards compatibility
], async (req, res) => {
const params = req.params;
const id = Number(params.identifier);

Expand Down

0 comments on commit a3b98c7

Please sign in to comment.