2 ms·
When routing is static, it's trivial and any solution will work. Like when your routes are all static /foo/bar and they merely use ?query params to pass info.
by hombre_fatal 4y ago
When routing is static, it's trivial and any solution will work. Like when your routes are all static /foo/bar and they merely use ?query params to pass info.
Not sure what you're asking, but handling dynamic segment routing ergonomically is where naive solutions tend to fail.
For example, a simple trie/map router needs additional logic to backtrack and try downstream routes. You wouldn't want `GET /users/42/show` to 404 in the following route table.
/users/42/admin
/users/:id/show