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,