fixed response not being sent
All checks were successful
ci / docker (push) Successful in 32s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
Nathan Windisch 2025-03-20 12:32:29 +00:00
parent 024f0d2291
commit 58a3b400ae

View File

@ -1,5 +1,5 @@
from typing import Annotated
from fastapi import FastAPI, Query
from fastapi import FastAPI, Query, Response
from fastapi.responses import JSONResponse
import xml.etree.ElementTree as xml
import requests
@ -20,6 +20,7 @@ def root():
<p><a href="https://autodiscover-proxy.apps.wnd.sh/docs">Redirecting...</a></p>
</body>
</html>"""
return Response(content=content, media_type="text/html")
@app.get("/api/v1/health")
def health():