Spaces:
Runtime error
Runtime error
prashasti commited on
Commit ·
29ab1d0
1
Parent(s): 5e241ee
App changes
Browse files
app.py
CHANGED
|
@@ -55,12 +55,7 @@ def health():
|
|
| 55 |
return {"status": "ok"}
|
| 56 |
|
| 57 |
|
| 58 |
-
@app.get("/reset")
|
| 59 |
-
def reset_get():
|
| 60 |
-
return reset({})
|
| 61 |
-
|
| 62 |
@app.post("/reset")
|
| 63 |
-
@app.post("/reset/")
|
| 64 |
def reset(payload: Optional[Dict[str, Any]] = Body(default={})):
|
| 65 |
"""
|
| 66 |
Accepts BOTH:
|
|
|
|
| 55 |
return {"status": "ok"}
|
| 56 |
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
@app.post("/reset")
|
|
|
|
| 59 |
def reset(payload: Optional[Dict[str, Any]] = Body(default={})):
|
| 60 |
"""
|
| 61 |
Accepts BOTH:
|