htmlteansponder / main.py
agentsay's picture
Create main.py
696e669 verified
raw
history blame contribute delete
233 Bytes
from fastapi import FastAPI
from fastapi.responses import FileResponse
app = FastAPI()
@app.get("/")
async def serve_html():
return FileResponse("index.html")
@app.get("/health")
async def health():
return {"status": "ok"}