added AllowAnonymous();

This commit is contained in:
2025-11-17 21:20:04 +01:00
parent c6d4ef2c58
commit 27e8fea7f3
23 changed files with 23 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ public class CreateSupplierEndpoint(PyroFetesDbContext database) : Endpoint<Crea
public override void Configure()
{
Post("/api/suppliers");
AllowAnonymous();
}
public override async Task HandleAsync(CreateSupplierDto req, CancellationToken ct)

View File

@@ -13,6 +13,7 @@ public class DeleteSupplierEndpoint(PyroFetesDbContext database) : Endpoint<Dele
public override void Configure()
{
Delete("/api/suppliers/{@Id}", x => new {x.Id});
AllowAnonymous();
}
public override async Task HandleAsync(DeleteSupplierRequest req, CancellationToken ct)

View File

@@ -10,6 +10,7 @@ public class GetAllSuppliersEndpoint(PyroFetesDbContext database) : EndpointWith
public override void Configure()
{
Get("/api/suppliers");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken ct)

View File

@@ -14,6 +14,7 @@ public class GetSupplierEndpoint(PyroFetesDbContext database) : Endpoint<GetSupp
public override void Configure()
{
Get("/api/suppliers/{@Id}", x => new {x.Id});
AllowAnonymous();
}
public override async Task HandleAsync(GetSupplierRequest req, CancellationToken ct)

View File

@@ -10,6 +10,7 @@ public class PatchSupplierDeleveryDelayEndpoint(PyroFetesDbContext database) : E
public override void Configure()
{
Get("/api/supplier/{@Id}/DeleveryDalay", x => new {x.Id});
AllowAnonymous();
}
public override async Task HandleAsync(PatchSupplierDeliveryDelayDto req, CancellationToken ct)

View File

@@ -10,6 +10,7 @@ public class UpdateSupplierEndpoint(PyroFetesDbContext database) : Endpoint<Upda
public override void Configure()
{
Put("/api/suppliers/{@Id}", x => new {x.Id});
AllowAnonymous();
}
public override async Task HandleAsync(UpdateSupplierDto req, CancellationToken ct)