I have a routing table in
api.add_resource(sonarqube.SonarqubeHistory, '/sonarqube/<project_name>') api.add_resource(project.ProjectFile, '/project/<sint:project_id>/file') api.add_resource(redmine.RedmineFile, '/download', '/file/<int:file_id>')
The resource classes are in other modules like
My question is: Is that possible to also move
api.add_resource() into the other modules (For more structured code)? I tried simply move the statement and
from apis import api, but since
apis.py also do other works it will result circular import.
Is there an example for similar use cases?