|
@@ -314,8 +314,8 @@ async def delete(id: int):
|
|
|
|
|
|
|
|
|
@users.get("/information")
|
|
|
-async def get_information(email:str,is_gmail:int):
|
|
|
- result = await User.filter(email=email, is_gmail=is_gmail).first()
|
|
|
+async def get_information(token:str):
|
|
|
+ result = await User.filter(token=token).first()
|
|
|
return {"msg":result, "code":200}
|
|
|
|
|
|
@users.get("/protect")
|
|
@@ -323,3 +323,6 @@ def protected_route(user=Depends(manager)):
|
|
|
if user is None:
|
|
|
return {'message': "no access"}
|
|
|
return {'user': user}
|
|
|
+
|
|
|
+
|
|
|
+
|