Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -88,7 +88,7 @@ client_mongo = MongoClient(MONGO_URL)
|
|
88 |
db = client_mongo["tiktokbot"]
|
89 |
collection = db["users"]
|
90 |
|
91 |
-
app = FastAPI()
|
92 |
|
93 |
def get_all_api_keys():
|
94 |
user = collection.find({})
|
@@ -187,6 +187,10 @@ def get_profile_clone(user_id):
|
|
187 |
else:
|
188 |
return None
|
189 |
|
|
|
|
|
|
|
|
|
190 |
@app.post("/ryuzaki/profile-clone")
|
191 |
def profile_clone(
|
192 |
user_id: int,
|
|
|
88 |
db = client_mongo["tiktokbot"]
|
89 |
collection = db["users"]
|
90 |
|
91 |
+
app = FastAPI(docs_url=None, redoc_url="/redoc")
|
92 |
|
93 |
def get_all_api_keys():
|
94 |
user = collection.find({})
|
|
|
187 |
else:
|
188 |
return None
|
189 |
|
190 |
+
@app.get("/")
|
191 |
+
def welcome_to_ryuzaki():
|
192 |
+
return {"message": "check docs: https://randydev-ryuzaki-api.hf.space/redoc"}
|
193 |
+
|
194 |
@app.post("/ryuzaki/profile-clone")
|
195 |
def profile_clone(
|
196 |
user_id: int,
|