routes updated
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/providers");
|
||||
Post("/providers");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/providers/{@Id}", x => new { x.Id });
|
||||
Delete ("/providers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllProvidersEndpoint(PyroFetesDbContext pyroFetesDbContext) : En
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/providers");
|
||||
Get ("/providers");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/providers/{@Id}", x => new { x.Id });
|
||||
Get ("/providers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/providers/{@Id}", x => new { x.Id });
|
||||
Put ("/providers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user