Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,6 +295,11 @@ app.add_middleware(
|
|
| 295 |
allow_methods=["*"], allow_headers=["*"],
|
| 296 |
)
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
# ✅ Register endpoint
|
| 299 |
@app.post("/register/")
|
| 300 |
async def register(body: RegisterRequest):
|
|
|
|
| 295 |
allow_methods=["*"], allow_headers=["*"],
|
| 296 |
)
|
| 297 |
|
| 298 |
+
@app.get("/")
|
| 299 |
+
async def health():
|
| 300 |
+
return {"status": "ok"}
|
| 301 |
+
|
| 302 |
+
|
| 303 |
# ✅ Register endpoint
|
| 304 |
@app.post("/register/")
|
| 305 |
async def register(body: RegisterRequest):
|