From: Michael Tremer Date: Wed, 25 Feb 2026 15:48:57 +0000 (+0000) Subject: api: Redirect to the API documentation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e934c76c700d3b9bc9cefd1576a0d13eea3255e0;p=dbl.git api: Redirect to the API documentation Signed-off-by: Michael Tremer --- diff --git a/src/dbl/api/__init__.py b/src/dbl/api/__init__.py index 9720a98..68e6e98 100644 --- a/src/dbl/api/__init__.py +++ b/src/dbl/api/__init__.py @@ -57,6 +57,15 @@ from . import domains from . import lists from . import reports +# Index + +@app.get("/") +def index(): + """ + Redirect straight to the documentation + """ + return fastapi.responses.RedirectResponse("/docs") + # Search @app.get("/search")