Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -272,7 +272,7 @@ def generate_otp(length=6):
|
|
272 |
class OTPCallbackPayload(BaseModel):
|
273 |
user_id: str
|
274 |
|
275 |
-
@app.get("/api/verify", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
276 |
def get_verify_otp(user_id: int):
|
277 |
try:
|
278 |
get_otp_code = get_verify_otp(user_id)
|
|
|
272 |
class OTPCallbackPayload(BaseModel):
|
273 |
user_id: str
|
274 |
|
275 |
+
@app.get("/api/get-verify", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
276 |
def get_verify_otp(user_id: int):
|
277 |
try:
|
278 |
get_otp_code = get_verify_otp(user_id)
|