Endpoints like app.get("/api/history/:station") and app.get("/api/history/:station/case/:id") are well-named but ones like app.post("/api/add-case/:station") are a little confusing.
Generally it is good to try and only refer to the resource name in the end point and then specify the behaviour you want with the HTTP verb. So adding a case to a station would be via a POST to something like /api/stations/:stationId/case.
Endpoints like
app.get("/api/history/:station")andapp.get("/api/history/:station/case/:id")are well-named but ones likeapp.post("/api/add-case/:station")are a little confusing.Generally it is good to try and only refer to the resource name in the end point and then specify the behaviour you want with the HTTP verb. So adding a case to a station would be via a POST to something like
/api/stations/:stationId/case.