routes updated
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateProviderTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/providertypes");
|
||||
Post("/providertypes");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteProviderTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/providertypes/{@Id}", x => new { x.Id });
|
||||
Delete ("/providertypes/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllProviderTypesEndpoint(PyroFetesDbContext pyroFetesDbContext)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/providertype");
|
||||
Get ("/providertype");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetProviderTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : En
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/providertypes/{@Id}", x => new { x.Id });
|
||||
Get ("/providertypes/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateProviderTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/providertypes/{@Id}", x => new { x.Id });
|
||||
Put ("/providertypes/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user