Im looking to separate out my complex API structure so that I have the following structure. I am wondering. Is there a way to mount all files under the users/ folder to the same ./api/v1/users route? And the same for projects/ ? This becomes a bigger problem when I have dynamic paths under one of these as well.
In shiny, to accomplish something like this Id use source('file.R', local=TRUE) but in this case plumber must source the mounted files differently.
The reason I am structuring it this way is to reduce complexity during development (as opposed to adding multiple verbs to the same endpoint).
Thanks Meztez, its helpful to know the plumb takes a directory but unfortunately this doesnt work since it expects to find a plumber.R file there. Is there a way to still manage with the separate R files in those directories? Im looking at entrypoints but not sure if I understand the applicability here.