Subflow / app.py
AliJabbarpour's picture
Create app.py
283c23c verified
Raw History Blame
323 Bytes
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/health")
async def health():
return {"status": "ok", "message": "SubFlow backend is running"}