Hey, I have a general architecture question.
I see in your example that you hide all endpoints behind app_v1 folder. If several of them would be reused in v2, v3 etc., would you just copy paste them?
Second question is about other dependencies inside the package. What if there is some common code that is only used by v1? Do I just keep increasing common functionalities to enable all versions, or do I just hide the version specific code inside each of the version folders?
Hey, I have a general architecture question.
I see in your example that you hide all endpoints behind
app_v1folder. If several of them would be reused in v2, v3 etc., would you just copy paste them?Second question is about other dependencies inside the package. What if there is some common code that is only used by v1? Do I just keep increasing common functionalities to enable all versions, or do I just hide the version specific code inside each of the version folders?