Ufoptg commited on
Commit
1b31f75
β€’
1 Parent(s): acf4b20

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +11 -10
main.py CHANGED
@@ -99,7 +99,8 @@ app = FastAPI(
99
  "name": "πŸŒ€ΚŠΚ„βŠ•Φ„πŸŒ€",
100
  "url": "https://t.me/UFoPInfo",
101
  },
102
- docs_url="/"
 
103
  )
104
 
105
  def validate_api_key(api_key: str = Header(...)):
@@ -122,15 +123,6 @@ def sibyl_get_all_banlist():
122
  }
123
  }
124
 
125
- @app.get("/UFoP/blacklist-words")
126
- def blacklist_words():
127
- try:
128
- BLACKLIST_WORDS = BadWordsList()
129
- results_all = BLACKLIST_WORDS.banned_by_google(file_txt="banned_by_google.txt", storage=True)
130
- return {"status": "true", "results": results_all}
131
- except Exception as e:
132
- return {"status": "false", "message": f"Internal server error: {str(e)}"}
133
-
134
  @app.delete("/UFoP/bandel", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
135
  def sibyl_system_delete(
136
  item: SibylSystemDel,
@@ -204,6 +196,15 @@ def sibyl_system(
204
  else:
205
  return {"status": "false", "message": "Not Found User"}
206
 
 
 
 
 
 
 
 
 
 
207
  @app.get("/ryuzaki/ai")
208
  def ryuzaki_ai(
209
  text: str = Query(..., description="text in query parameter"),
 
99
  "name": "πŸŒ€ΚŠΚ„βŠ•Φ„πŸŒ€",
100
  "url": "https://t.me/UFoPInfo",
101
  },
102
+ docs_url="/elp",
103
+ redoc_url="/"
104
  )
105
 
106
  def validate_api_key(api_key: str = Header(...)):
 
123
  }
124
  }
125
 
 
 
 
 
 
 
 
 
 
126
  @app.delete("/UFoP/bandel", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
127
  def sibyl_system_delete(
128
  item: SibylSystemDel,
 
196
  else:
197
  return {"status": "false", "message": "Not Found User"}
198
 
199
+ @app.get("/UFoP/blacklist-words")
200
+ def blacklist_words():
201
+ try:
202
+ BLACKLIST_WORDS = BadWordsList()
203
+ results_all = BLACKLIST_WORDS.banned_by_google(file_txt="banned_by_google.txt", storage=True)
204
+ return {"status": "true", "results": results_all}
205
+ except Exception as e:
206
+ return {"status": "false", "message": f"Internal server error: {str(e)}"}
207
+
208
  @app.get("/ryuzaki/ai")
209
  def ryuzaki_ai(
210
  text: str = Query(..., description="text in query parameter"),