fixed response not being sent
This commit is contained in:
parent
024f0d2291
commit
58a3b400ae
3
main.py
3
main.py
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user