2 ms·
Both approaches are fine, and doable. As a convention I don't think one method per verb in a controller is inherently bad just because they don't share state.
by crowcroft 2y ago
Both approaches are fine, and doable.
As a convention I don't think one method per verb in a controller is inherently bad just because they don't share state. Plenty of long running, maintainable projects follow this practice.