Skip to content

Commit eb6d2f7

Browse files
Merge pull request #86 from minos-framework/issue-84-admin-index-bug
#84 - Bug getting Admin Index page
2 parents 5e393ad + f477705 commit eb6d2f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

minos/api_gateway/rest/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ async def create_application(self) -> web.Application:
6868
app.router.add_route("DELETE", "/admin/rules/{id}", AdminHandler.delete_rule)
6969

7070
# Administration routes
71-
aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader("minos/api_gateway/rest/backend/templates"))
71+
path = Path(Path.cwd())
72+
aiohttp_jinja2.setup(app, loader=jinja2.FileSystemLoader(f"{path}/minos/api_gateway/rest/backend/templates"))
7273
app.router.add_route("*", "/administration{path:.*}", self.handler)
7374
# app.router.add_route("GET", "/administration/{filename:.*}", self._serve_files)
7475

0 commit comments

Comments
 (0)