Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ async def create_game(request: Request):
|
|
| 31 |
return {"success": True, "message": "Game created successfully!"}
|
| 32 |
|
| 33 |
@app.get("/api/test")
|
| 34 |
-
async def test(data: str):
|
| 35 |
if not data:
|
| 36 |
raise HTTPException(status_code=404, detail="Missing field \"data\"")
|
| 37 |
|
|
|
|
| 31 |
return {"success": True, "message": "Game created successfully!"}
|
| 32 |
|
| 33 |
@app.get("/api/test")
|
| 34 |
+
async def test(data: str = None):
|
| 35 |
if not data:
|
| 36 |
raise HTTPException(status_code=404, detail="Missing field \"data\"")
|
| 37 |
|