SoulofSukuna commited on
Commit
d540c56
1 Parent(s): 162182c

modified: main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
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("/ryuzaki/getbanlist")
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("/ryuzaki/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,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("/ryuzaki/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,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("/ryuzaki/sibyl", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
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)