Spaces:
Running
Running
SoulofSukuna
commited on
Commit
•
d540c56
1
Parent(s):
162182c
modified: main.py
Browse files
main.py
CHANGED
@@ -274,7 +274,7 @@ def get_profile_(
|
|
274 |
except Exception as e:
|
275 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
276 |
|
277 |
-
@app.get("/
|
278 |
def sibyl_get_all_banlist():
|
279 |
banned_users = get_all_banned()
|
280 |
return {
|
@@ -293,7 +293,7 @@ def blacklist_words():
|
|
293 |
except Exception as e:
|
294 |
return {"status": "false", "message": f"Internal server error: {str(e)}"}
|
295 |
|
296 |
-
@app.delete("/
|
297 |
def sibyl_system_delete(
|
298 |
item: SibylSystemDel,
|
299 |
api_key: None = Depends(validate_api_key_only_devs)
|
@@ -315,7 +315,7 @@ def sibyl_system_delete(
|
|
315 |
except Exception as e:
|
316 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
317 |
|
318 |
-
@app.post("/
|
319 |
def sibyl_system_ban(
|
320 |
item: SibylSystemBan,
|
321 |
api_key: None = Depends(validate_api_key)
|
@@ -345,7 +345,7 @@ def sibyl_system_ban(
|
|
345 |
except Exception as e:
|
346 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
347 |
|
348 |
-
@app.get("/
|
349 |
def sibyl_system(
|
350 |
item: SibylSystem,
|
351 |
api_key: None = Depends(validate_api_key)
|
|
|
274 |
except Exception as e:
|
275 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
276 |
|
277 |
+
@app.get("/UFoP/getbanlist")
|
278 |
def sibyl_get_all_banlist():
|
279 |
banned_users = get_all_banned()
|
280 |
return {
|
|
|
293 |
except Exception as e:
|
294 |
return {"status": "false", "message": f"Internal server error: {str(e)}"}
|
295 |
|
296 |
+
@app.delete("/UFoP/sibyldel", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
297 |
def sibyl_system_delete(
|
298 |
item: SibylSystemDel,
|
299 |
api_key: None = Depends(validate_api_key_only_devs)
|
|
|
315 |
except Exception as e:
|
316 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
317 |
|
318 |
+
@app.post("/UFoP/sibylban", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
319 |
def sibyl_system_ban(
|
320 |
item: SibylSystemBan,
|
321 |
api_key: None = Depends(validate_api_key)
|
|
|
345 |
except Exception as e:
|
346 |
return ErrorStatus(status="false", message=f"Internal server error: {str(e)}")
|
347 |
|
348 |
+
@app.get("/UFoP/sibyl", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
349 |
def sibyl_system(
|
350 |
item: SibylSystem,
|
351 |
api_key: None = Depends(validate_api_key)
|