forked from sanchezvem/PyroFetes
added AllowAnonymous();
This commit is contained in:
@@ -10,6 +10,7 @@ public class GetAllQuotationEndpoint(PyroFetesDbContext database) : EndpointWith
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/quotations");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
|
||||
@@ -15,6 +15,7 @@ public class GetQuotationEndpoint(PyroFetesDbContext database) : Endpoint<GetQuo
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/quotations/{@Id}", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetQuotationRequest req, CancellationToken ct)
|
||||
|
||||
Reference in New Issue
Block a user