Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Minibrams/fastapi-decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
Minibrams committed Oct 2, 2024
2 parents aafcca5 + 630c0a7 commit fb7de74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def authorize(*required_scopes: str):
pass
return add_dependencies(Depends(dependency))(func)


@app.put("/users/{user_id}")
@authorize("users:write")
def update_user(*, user_id: int, user_update: UserUpdate):
Expand Down

0 comments on commit fb7de74

Please sign in to comment.