Put roles into endpoints
This commit is contained in:
@@ -10,7 +10,7 @@ public class GetAllProductsUnderLimitEndpoint(ProductsRepository productsReposit
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/products/underLimit");
|
||||
AllowAnonymous();
|
||||
Roles("Admin","Employe");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
|
||||
Reference in New Issue
Block a user