mdvtools.project_router
Classes
Module Contents
- class mdvtools.project_router.ProjectBlueprint(name: str, _ignored: str, url_prefix: str)[source]
- blueprints: Dict[str, ProjectBlueprint][source]
- dispatch_request(subpath: str) flask.Response [source]
We need to parse subpath so that we can route in a compatible way: Currently, we have regex patterns as keys in self.routes that match the subpath, with groups for any dynamic parts, so ‘/tracks/<path:path>’ becomes ‘/tracks/(.*)’. If we get a request for ‘/tracks/mytrack’, it will match the rule and call the method with ‘mytrack’ as the argument.
- class mdvtools.project_router.ProjectBlueprint_v2(name: str, _ignored: str, url_prefix: str)[source]
- blueprints: Dict[str, ProjectBlueprint_v2][source]
- dispatch_request(subpath: str, project_id) flask.Response [source]
We need to parse subpath so that we can route in a compatible way: Currently, we have regex patterns as keys in self.routes that match the subpath, with groups for any dynamic parts, so ‘/tracks/<path:path>’ becomes ‘/tracks/(.*)’. If we get a request for ‘/tracks/mytrack’, it will match the rule and call the method with ‘mytrack’ as the argument.