3 ms·
action_fallback seems like a great addition. It is helpful to expose all your error codes in a single place. However, I am not too convinced about having a con
by bharani_m 10y ago
action_fallback seems like a great addition. It is helpful to expose all your error codes in a single place.
However, I am not too convinced about having a context for each resource. I think that should be optional, meaning that I should be able to specify a context for some related resources but at the same time, I should be able to have resources outside of any context.
- josevalim 10y agoIt is not a context per resource. The context should group all resources and responsibilities that belong to that context. For example, if you are building Github, you could have an IssuesTracker context where you would find the issues, labels and other all issues tracker related resources in there.