routes updated

This commit is contained in:
2025-12-04 16:53:00 +01:00
parent 0cc0eeb439
commit 2b4b2b50df
51 changed files with 51 additions and 51 deletions

View File

@@ -8,7 +8,7 @@ public class CreateCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext)
{
public override void Configure()
{
Post("/api/communications");
Post("/communications");
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext)
{
public override void Configure()
{
Delete ("/api/communications/{@Id}", x => new { x.Id });
Delete ("/communications/{@Id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllCommunicationsEndpoint(PyroFetesDbContext pyroFetesDbContext)
{
public override void Configure()
{
Get ("/api/communications");
Get ("/communications");
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class GetCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : E
{
public override void Configure()
{
Get ("/api/communications/{@Id}", x => new { x.Id });
Get ("/communications/{@Id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class UpdateCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext)
{
public override void Configure()
{
Put ("/api/communications/{@Id}", x => new { x.Id });
Put ("/communications/{@Id}", x => new { x.Id });
AllowAnonymous();
}