http url parameters question
Hi yall, I am currently trying to make a Deno http server for the funs, but I am walking into a problem.
I want to have 3 pages:
If the route is
I want to have 3 pages:
/, /thing and /thing/:id. If the route is
/, it directs to home, if the route is /thing/:id, then it directs to that page, and if the route is /thing/:id but without a (valid) id, then it directs to /thing. Is there a way to do this without putting the handlers for /thing and /thing/:id in seperate?