Alkoholová tabulka ale lepší
Adds an authorization policy to restrict access to admin-only endpoints. Creates an `AdminOnlyRequirement` and `AdminOnlyHandler` to check if a user has admin privileges. Applies the "AdminOnly" policy to the AdminController to secure admin functionalities. Modifies the endpoint for changing user admin status to include the user ID in the route. |
||
---|---|---|
DrinkRateAPI | ||
.gitignore | ||
chillrate.sln |