Nice Side Effect Of Splitting Out APIs

At work we've been splitting our APIs out of our default controllers in order to keep them more cleanly versioned. It's been kind of a pain, to be honest, but I discovered one really positive side effect the other day. Out of 13 controllers that we had before the refactor, only 4 had anything to do with our API.

And even within those controllers that exposed methods to the API, many methods had nothing to do with the API. So we've now got a much more compact and clearly defined set of controllers that tell us exactly what's going on within our API, and we've got another set that tell us clearly what is going on in our web interface.