MAJ routes d'api pour liaison avec front

This commit is contained in:
2025-11-20 14:10:54 +01:00
parent a8d0b99571
commit 157719eae2
49 changed files with 49 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ public class CreateMovementEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Post("/api/movements");
Post("/movements");
AllowAnonymous();
}

View File

@@ -12,7 +12,7 @@ public class DeleteMovementEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Delete("/api/Movements/{@id}", x => new { x.Id });
Delete("/Movements/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllMovementsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : En
{
public override void Configure()
{
Get("/api/movements");
Get("/movements");
AllowAnonymous();
}

View File

@@ -13,7 +13,7 @@ public class GetMovementEndpoint(PyroFetesDbContext pyrofetesdbcontext) :Endpoin
{
public override void Configure()
{
Get("/api/movements/{@id}", x => new { x.Id });
Get("/movements/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class UpdateMovementEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Put("/api/movements");
Put("/movements");
AllowAnonymous();
}