Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -181,16 +181,13 @@ class MessageRequestValidate(BaseModel):
|
|
181 |
|
182 |
@app.post('/realtor/validate')
|
183 |
async def realtor_validate_user(request: MessageRequestValidate):
|
184 |
-
|
185 |
-
|
186 |
-
if body_data.get('from_phone', '') == "+917389058485":
|
187 |
return JSONResponse(content="User is verified")
|
188 |
return JSONResponse(content="user is not verified")
|
189 |
|
190 |
|
191 |
@app.post('/realtor/singup')
|
192 |
async def realtor_sign_up(request: MessageRequestSignUP):
|
193 |
-
|
194 |
-
|
195 |
-
print(body_data)
|
196 |
-
return JSONResponse(content="user is signed up sucessfully now you can ask")
|
|
|
181 |
|
182 |
@app.post('/realtor/validate')
|
183 |
async def realtor_validate_user(request: MessageRequestValidate):
|
184 |
+
print(request)
|
185 |
+
if request.from_phone == "+917389058485":
|
|
|
186 |
return JSONResponse(content="User is verified")
|
187 |
return JSONResponse(content="user is not verified")
|
188 |
|
189 |
|
190 |
@app.post('/realtor/singup')
|
191 |
async def realtor_sign_up(request: MessageRequestSignUP):
|
192 |
+
print(request)
|
193 |
+
return JSONResponse(content="user is signed up sucessfully now you can contine to ask propertry related questions")
|
|
|
|