routes updated
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/staffs");
|
||||
Post("/staffs");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/staffs/{@Id}", x => new { x.Id });
|
||||
Delete ("/staffs/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllStaffsEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpo
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/staffs");
|
||||
Get ("/staffs");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/staffs/{@Id}", x => new { x.Id });
|
||||
Get ("/staffs/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateStaffRequest(PyroFetesDbContext pyroFetesDbContext) : Endpoin
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/staffs/{@Id}", x => new { x.Id });
|
||||
Put ("/staffs/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user