From 34b9c58be1cdc73159f74f03d99e01163ccd9774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20B=C3=BCchse?= Date: Wed, 3 Jun 2026 21:18:21 +0200 Subject: [PATCH 1/2] Let compliance monitor redirect from / to /page/table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Büchse --- compliance-monitor/monitor.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/compliance-monitor/monitor.py b/compliance-monitor/monitor.py index fcafe9bbe..e64063dd5 100755 --- a/compliance-monitor/monitor.py +++ b/compliance-monitor/monitor.py @@ -389,10 +389,7 @@ def check_role(account: Optional[tuple[str, str]], subject: str = None, roles: i @app.get("/") async def root(): - # we might use the following redirect in the future: - # return RedirectResponse("/pages") - # but keep this silly message for the time being, so as not to expose the work in progress too much - return {"message": "Hello World"} + return RedirectResponse("/page/table") @app.get("/reports") @@ -777,14 +774,6 @@ async def get_scope( return render_view(VIEW_SCOPE, view_type, spec=spec, relevant=relevant, rows=rows, base_url=settings.base_url, title=spec['name']) -@app.get("/pages") -async def get_pages( - request: Request, - conn: Annotated[connection, Depends(get_conn)], -): - return RedirectResponse("/page/table") - - @app.get("/results") async def get_results( request: Request, From 9a7cb44b101d87b9740336168abfa931849c1aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20B=C3=BCchse?= Date: Thu, 4 Jun 2026 12:36:10 +0200 Subject: [PATCH 2/2] Apply suggestion by @gerbsen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Büchse --- compliance-monitor/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compliance-monitor/monitor.py b/compliance-monitor/monitor.py index e64063dd5..bf35bf556 100755 --- a/compliance-monitor/monitor.py +++ b/compliance-monitor/monitor.py @@ -389,7 +389,7 @@ def check_role(account: Optional[tuple[str, str]], subject: str = None, roles: i @app.get("/") async def root(): - return RedirectResponse("/page/table") + return RedirectResponse(f"{settings.base_url}page/table") @app.get("/reports")