from fastapi import FastAPI
from fastapi.responses import HTMLResponse

app = FastAPI(title="Asma FastAPI")

@app.get("/")
async def root():
    return {"message": "Asma FastAPI chal raha hai!", "status": "live"}

@app.get("/health")
async def health():
    return {"status": "healthy"}

@app.get("/", response_class=HTMLResponse)
async def home():
    return """
    <h1>🎉 Asma FastAPI Live!</h1>
    <p>Endpoints:<br>
    <a href="/docs">Swagger Docs</a> | 
    <a href="/health">Health Check</a></p>
    """

