Spaces:
Running
Running
Update admin_routes.py
Browse files- admin_routes.py +2 -1
admin_routes.py
CHANGED
@@ -260,9 +260,10 @@ async def _spark_project_control(action: str, project_name: str, username: str):
|
|
260 |
try:
|
261 |
async with httpx.AsyncClient(timeout=30) as client:
|
262 |
if action == "delete":
|
|
|
263 |
response = await client.delete(
|
264 |
f"{spark_endpoint}/project/delete",
|
265 |
-
json
|
266 |
headers=headers
|
267 |
)
|
268 |
else:
|
|
|
260 |
try:
|
261 |
async with httpx.AsyncClient(timeout=30) as client:
|
262 |
if action == "delete":
|
263 |
+
# DELETE request için content parametresi kullan
|
264 |
response = await client.delete(
|
265 |
f"{spark_endpoint}/project/delete",
|
266 |
+
content=json.dumps({"project_name": project_name}),
|
267 |
headers=headers
|
268 |
)
|
269 |
else:
|