from fastapi import FastAPI app = FastAPI() @app.get("/") def index() -> dict[str, str]: return {"message": "Tinyship FastAPI demo"} @app.get("/health") def health() -> dict[str, bool]: return {"ok": True}