I'm implementing a Rest API in Java using the framework Spark . I need to split the routes into two or more versions: v1
and v2
. I know Spark supplies path()
, I believe it's not hard.
My question is how to perform folder structure based on the MVC template.
Note: I mentioned Spark because of the contextualisation of the framework I'm using.