LapStore commited on
Commit ·
4dca701
1
Parent(s): 14110f9
make better error handling
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def main():
|
|
| 50 |
return "Hello From Background remover !"
|
| 51 |
|
| 52 |
@app.post("/items")
|
| 53 |
-
|
| 54 |
async def read_items(request: Request, type_of_filters: str = Form(...)):
|
| 55 |
return {"items": str(type_of_filters)}
|
| 56 |
|
|
|
|
| 50 |
return "Hello From Background remover !"
|
| 51 |
|
| 52 |
@app.post("/items")
|
| 53 |
+
#@limiter.limit("3/hour") # must have parameter request
|
| 54 |
async def read_items(request: Request, type_of_filters: str = Form(...)):
|
| 55 |
return {"items": str(type_of_filters)}
|
| 56 |
|