I have multi-module phalcon app (api, admin and others) Now I want to add versioning to API module. Here my FS structure
-api --Module.php --v1 ---v1 files --v2 ---v2 files
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