Juampi Barreto
1 min readDec 24, 2017

--

If it comes to that, sure. But sometimes the database has the same fields for two APIs, so what I try to do is to make the new input optional, so if it’s the old API, nothing happens.

After all, the model is the same, so the rest of the controller should be identical for both controllers… like my location example.

If your case is more extreme, maybe duplicating controllers might be the way to go

--

--

No responses yet