change route
This commit is contained in:
@@ -9,7 +9,7 @@ public class DeleteContactEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endp
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/Contacts/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/contacts/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CreateCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/Customer");
|
||||
Post("/api/customer");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/Customer/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/Customer");
|
||||
Get ("/api/customer");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/Customer/{@Id}", x => new { x.Id });
|
||||
Get ("/api/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateCustomer(PyroFetesDbContext pyroFetesDbContext) : Endpoint <U
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/Customer/{@Id}", x => new { x.Id });
|
||||
Put ("/api/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CreateCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/CustomerType");
|
||||
Post("/api/customertype");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DeleteCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/CustomerType/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/customertype/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/CustomerType");
|
||||
Get ("/api/customertype");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : En
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/CustomerType/{@Id}", x => new { x.Id });
|
||||
Get ("/api/customertype/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateCustomerType(PyroFetesDbContext pyroFetesDbContext) : Endpoin
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/CustomerType/{@Id}", x => new { x.Id });
|
||||
Put ("/api/customertype/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class CreateExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/ExperienceLevels");
|
||||
Post("/api/experiencelevels");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteExerienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/ExperienceLevels/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/experiencelevels/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllExperienceLevelsEndpoint(PyroFetesDbContext pyroFetesDbContex
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/experienceLevels");
|
||||
Get ("/api/experiencelevels");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/experienceLevels/{@Id}", x => new { x.Id });
|
||||
Get ("/api/experiencelevels/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/ExperienceLevels/{@Id}", x => new { x.Id });
|
||||
Put ("/api/experiencelevels/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CreateHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/HistoryOfApprovals");
|
||||
Post("/api/historyofapprovals");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/HistoryOfApprovals/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/historyofapprovals/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/HistoryOfApprovals");
|
||||
Get ("/api/historyofapprovals");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbContext)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/HistoryOfApprovals/{@Id}", x => new { x.Id });
|
||||
Get ("/api/historyofapprovals/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/HistoryOfApprovals/{@Id}", x => new { x.Id });
|
||||
Put ("/api/historyofapprovals/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CreateStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/availabilities");
|
||||
Post("/api/staffs");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/staff/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/staffs/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllStaffsEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpo
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/availabilities");
|
||||
Get ("/api/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 ("/api/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 ("/api/staffs/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user