Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
+
|
| 4 |
+
app = FastAPI()
|
| 5 |
+
|
| 6 |
+
app.add_middleware(
|
| 7 |
+
CORSMiddleware,
|
| 8 |
+
allow_origins=["*"],
|
| 9 |
+
allow_methods=["*"],
|
| 10 |
+
allow_headers=["*"],
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
@app.get("/health")
|
| 14 |
+
async def health():
|
| 15 |
+
return {"status": "ok", "message": "SubFlow backend is running"}
|