Retired /api in all the endpoints

This commit is contained in:
Cristiano
2025-11-20 16:33:56 +01:00
parent b76b668097
commit 3ad506f869
50 changed files with 58 additions and 54 deletions

View File

@@ -12,7 +12,7 @@ public class CreateSettingEndpoint(
{
public override void Configure()
{
Post("/api/setting");
Post("/settings");
AllowAnonymous();
}

View File

@@ -15,7 +15,7 @@ public class DeleteSettingEndpoint(SettingsRepository settingsRepository) : Endp
{
public override void Configure()
{
Delete("/api/setting/{@Id}", x => new {x.Id});
Delete("/settings/{@Id}", x => new {x.Id});
AllowAnonymous();
}

View File

@@ -18,7 +18,7 @@ public class GetSettingEndpoint(
{
public override void Configure()
{
Get("/api/setting/{@Id}", x => new {x.Id});
Get("/settings/{@Id}", x => new {x.Id});
AllowAnonymous();
}

View File

@@ -14,7 +14,7 @@ public class PatchSettingElectronicSignatureEndpoint(
{
public override void Configure()
{
Patch("/api/setting/{@Id}/ElectronicSignature", x => new {x.Id});
Patch("/settings/{@Id}/ElectronicSignature", x => new {x.Id});
AllowAnonymous();
}

View File

@@ -14,7 +14,7 @@ public class PatchSettingLogoEndpoint(
{
public override void Configure()
{
Patch("/api/setting/{@Id}/Logo", x => new {x.Id});
Patch("/settings/{@Id}/logo", x => new {x.Id});
AllowAnonymous();
}