Mobile app version of vmapp.org
Login or Join
Correia994

: Should Server or App. Handle API Versioning Logic My server redirects requests to a single front-end controller. Should it contain enough logic for mapping requests to different controllers based

@Correia994

Posted in: #Redirects #Server

My server redirects requests to a single front-end controller. Should it contain enough logic for mapping requests to different controllers based on version, or should the controller handle this logic?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

This is very much dependent on the way your application is written. If the exact same application handles everything and it is all build under a single global controller then the application should handle version routing but if you have several separate applications based on which version they are then the server should handle routing to the appropriate controller based on version.

As a side note best practice is to have the application decoupled by version so that the server routes to the appropriate application based on version and then the application takes over from there.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme