3 ms·
Because then you have to handle things like route precedence, method routing, "resource" mapping, etc. The `def route` way is very linear, you have one point of
by moeffju 14y ago
Because then you have to handle things like route precedence, method routing, "resource" mapping, etc. The `def route` way is very linear, you have one point of entry and that's it, the code just flows from there. With a bunch of `match /xyz` statements, or even a routing layer, the connection is less direct and potentially more prone to bugs.