diff --git a/argos/server/routes/views.py b/argos/server/routes/views.py index fd5fc32..4029c0e 100644 --- a/argos/server/routes/views.py +++ b/argos/server/routes/views.py @@ -1,6 +1,7 @@ """Web interface for humans""" from collections import defaultdict from functools import cmp_to_key +from os import path from typing import Annotated from urllib.parse import urlparse @@ -17,7 +18,8 @@ from argos.server.routes.dependencies import get_config, get_db route = APIRouter() -templates = Jinja2Templates(directory="argos/server/templates") +current_dir = path.dirname(__file__) +templates = Jinja2Templates(directory=path.join(current_dir, "../templates")) SEVERITY_LEVELS = {"ok": 1, "warning": 2, "critical": 3, "unknown": 4}