@router.post("/getAge", response_model=dict)
async def getAge(request: Request):
body = await request.json()
print(f"Received JSON: {body}") # 디버깅 출력
surgery_id = body.get("user_id")
◼️Python
@router.post("/getAge", response_model=dict)
async def getAge(request: Request):
body = await request.json()
print(f"Received JSON: {body}") # 디버깅 출력
surgery_id = body.get("user_id")