From 024f0d2291c835d0f399278cc08b4cd48efc401f Mon Sep 17 00:00:00 2001 From: Nathan Windisch Date: Thu, 20 Mar 2025 12:29:20 +0000 Subject: [PATCH] added an index redirect page --- main.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 12f45c0..150c9f5 100644 --- a/main.py +++ b/main.py @@ -7,12 +7,26 @@ import json app = FastAPI() +@app.get("/") +def root(): + content = """ + + + Autodiscover Lookup + + + + +

Redirecting...

+ + """ + @app.get("/api/v1/health") def health(): return { "status": "ok" } @app.get("/api/v1/lookup/{domain}") -def read_root( +def lookup_domain( domain: str, platform: Annotated[ str | None,