Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -99,8 +99,7 @@ app = FastAPI(
|
|
99 |
"name": "πΚΚβΦπ",
|
100 |
"url": "https://t.me/UFoPInfo",
|
101 |
},
|
102 |
-
docs_url="/
|
103 |
-
redoc_url="/"
|
104 |
)
|
105 |
|
106 |
def validate_api_key(api_key: str = Header(...)):
|
@@ -148,7 +147,7 @@ def sibyl_system_delete(
|
|
148 |
@app.post("/UFoP/banner", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
149 |
def sibyl_system_ban(
|
150 |
item: SibylSystemBan,
|
151 |
-
api_key: None = Depends(
|
152 |
):
|
153 |
if item.user_id == DEVELOPER_ID:
|
154 |
return {"status": "false", "message": "Only Developer"}
|
|
|
99 |
"name": "πΚΚβΦπ",
|
100 |
"url": "https://t.me/UFoPInfo",
|
101 |
},
|
102 |
+
docs_url="/"
|
|
|
103 |
)
|
104 |
|
105 |
def validate_api_key(api_key: str = Header(...)):
|
|
|
147 |
@app.post("/UFoP/banner", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
148 |
def sibyl_system_ban(
|
149 |
item: SibylSystemBan,
|
150 |
+
api_key: None = Depends(validate_api_key)
|
151 |
):
|
152 |
if item.user_id == DEVELOPER_ID:
|
153 |
return {"status": "false", "message": "Only Developer"}
|