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 CreateContactEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endp
{
public override void Configure()
{
Post("/api/contacts");
Post("/contacts");
AllowAnonymous();
}

View File

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

View File

@@ -8,7 +8,7 @@ public class GetAllContactxuest(PyroFetesDbContext pyroFetesDbContext) : Endpoin
{
public override void Configure()
{
Get ("/api/contacts");
Get ("/contacts");
AllowAnonymous();
}

View File

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

View File

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