- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for get_current_user (0.95 sec)
-
docs/en/docs/release-notes.md
For example, you could have code like this: ```Python def get_current_user(token: str): # authenticate user return User() @app.get("/items/") def read_items(user: User = Depends(get_current_user)): ... @app.post("/items/") def create_item(*, user: User = Depends(get_current_user), item: Item): ... @app.get("/items/{item_id}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Nov 01 11:25:57 UTC 2024 - 460.3K bytes - Viewed (0)