From 6bcbab6a9ab821672d36eeb6c3010cdd7327df4d Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Fri, 13 Nov 2026 11:01:09 +0000 Subject: [PATCH] Move docs redirect to the open_router Needing to log in to access the root '/' page isn't great for discoverability. Should make removing the deprecated router easier when we retire the pre-api/v1 routing. --- src/blueapi/service/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blueapi/service/main.py b/src/blueapi/service/main.py index 2ba310787..bbdadfa97 100644 --- a/src/blueapi/service/main.py +++ b/src/blueapi/service/main.py @@ -229,7 +229,7 @@ async def on_token_error_401(_: Request, __: Exception): ) -@secure_router.get("/", include_in_schema=False) +@open_router.get("/", include_in_schema=False) def root_redirect() -> RedirectResponse: """Redirect to docs url""" return RedirectResponse(