We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e393ad + f477705 commit eb6d2f7Copy full SHA for eb6d2f7
minos/api_gateway/rest/service.py
@@ -68,7 +68,8 @@ async def create_application(self) -> web.Application:
68
app.router.add_route("DELETE", "/admin/rules/{id}", AdminHandler.delete_rule)
69
70
# Administration routes
71
- aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader("minos/api_gateway/rest/backend/templates"))
+ path = Path(Path.cwd())
72
+ aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader(f"{path}/minos/api_gateway/rest/backend/templates"))
73
app.router.add_route("*", "/administration{path:.*}", self.handler)
74
# app.router.add_route("GET", "/administration/{filename:.*}", self._serve_files)
75
0 commit comments