forked from sanchezvem/PyroFetes
added AllowAnonymous();
This commit is contained in:
@@ -9,6 +9,7 @@ public class CreateSettingEndpoint(PyroFetesDbContext database) : Endpoint<Creat
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/setting");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateSettingDto req, CancellationToken ct)
|
||||
|
||||
@@ -13,6 +13,7 @@ public class DeleteSettingEndpoint(PyroFetesDbContext database) : Endpoint<Delet
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/api/setting/{@Id}", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteSettingRequest req, CancellationToken ct)
|
||||
|
||||
@@ -14,6 +14,7 @@ public class GetSettingEndpoint(PyroFetesDbContext database) : Endpoint<GetSetti
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/setting/{@Id}", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetSettingRequest req, CancellationToken ct)
|
||||
|
||||
@@ -10,6 +10,7 @@ public class PatchSettingElectronicSignatureEndpoint(PyroFetesDbContext database
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/setting/{@Id}/ElectronicSignature", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(PatchSettingElectronicSignatureDto req, CancellationToken ct)
|
||||
|
||||
@@ -10,6 +10,7 @@ public class PatchSettingLogoEndpoint(PyroFetesDbContext database) : Endpoint<Pa
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/setting/{@Id}/Logo", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(PatchSettingLogoDto req, CancellationToken ct)
|
||||
|
||||
Reference in New Issue
Block a user