I have multi-module phalcon app (api, admin and others) Now I want to add versioning to API module. Here my FS structure
I got a problem with
$router->addModuleResource (Annotation routing)
Namespaces should be registered before adding a route, but when I trying to addModuleResource inside Dispatcher - they are not applying.
Is there a place where I can get
router->getRewriteUri() and then add routes based on url which contain api version?
And again: I want to register namespaces and add routes after I know api version from URI