forked from sanchezvem/PyroFetes
Retired /api in all the endpoints
This commit is contained in:
@@ -12,7 +12,7 @@ public class CreateSettingEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/setting");
|
||||
Post("/settings");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user