4 ms·
I agree on principle, but in practice routers rely on arbitrary strings anyway. I don't see why the verb is not just a part of the route. In my head it's as if
by thiht 3y ago
I agree on principle, but in practice routers rely on arbitrary strings anyway. I don't see why the verb is not just a part of the route.
In my head it's as if we did this:
http.Segments("foo", "bar", http.Param("barID"), "baz")
instead of:
/foo/bar/:barID/baz
Is it sliiiightly safer? Yes. Is it insane? Also yes.