forked from sanchezvem/pyrofetes-backend
Put roles into endpoints
This commit is contained in:
@@ -13,7 +13,7 @@ public class UpdateUserEndpoint(UsersRepository usersRepository) : Endpoint<Upda
|
||||
public override void Configure()
|
||||
{
|
||||
Put("/users/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
Roles("Admin");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserDto req, CancellationToken ct)
|
||||
|
||||
Reference in New Issue
Block a user