diff --git a/PyroFetes/Endpoints/Availability/CreateAvailabilityEndpoint.cs b/PyroFetes/Endpoints/Availability/CreateAvailabilityEndpoint.cs index 73a41b8..3ab763c 100644 --- a/PyroFetes/Endpoints/Availability/CreateAvailabilityEndpoint.cs +++ b/PyroFetes/Endpoints/Availability/CreateAvailabilityEndpoint.cs @@ -8,7 +8,7 @@ public class CreateAvailabilityEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Post("/api/availabilities"); + Post("/availabilities"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Availability/DeleteAvailabilityEndpoint.cs b/PyroFetes/Endpoints/Availability/DeleteAvailabilityEndpoint.cs index 17ce63b..0786de7 100644 --- a/PyroFetes/Endpoints/Availability/DeleteAvailabilityEndpoint.cs +++ b/PyroFetes/Endpoints/Availability/DeleteAvailabilityEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteAvailabilityEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Delete ("/api/availabilities/{@Id}", x => new { x.Id }); + Delete ("/availabilities/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Availability/GetAllAvailabilitiesEndpoint.cs b/PyroFetes/Endpoints/Availability/GetAllAvailabilitiesEndpoint.cs index ce2a7eb..48d7007 100644 --- a/PyroFetes/Endpoints/Availability/GetAllAvailabilitiesEndpoint.cs +++ b/PyroFetes/Endpoints/Availability/GetAllAvailabilitiesEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllAvailabilityxuest(PyroFetesDbContext pyroFetesDbContext) : En { public override void Configure() { - Get ("/api/availabilities"); + Get ("/availabilities"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Availability/GetAvailabilityEndpoint.cs b/PyroFetes/Endpoints/Availability/GetAvailabilityEndpoint.cs index d0bf0b0..ab37496 100644 --- a/PyroFetes/Endpoints/Availability/GetAvailabilityEndpoint.cs +++ b/PyroFetes/Endpoints/Availability/GetAvailabilityEndpoint.cs @@ -9,7 +9,7 @@ public class GetAvailabilityEndpoint(PyroFetesDbContext pyroFetesDbContext) : En { public override void Configure() { - Get ("/api/availabilities/{@Id}", x => new { x.Id }); + Get ("/availabilities/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Availability/UpdateAvailabilityEndpoint.cs b/PyroFetes/Endpoints/Availability/UpdateAvailabilityEndpoint.cs index 7386014..78d2b16 100644 --- a/PyroFetes/Endpoints/Availability/UpdateAvailabilityEndpoint.cs +++ b/PyroFetes/Endpoints/Availability/UpdateAvailabilityEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateAvailabilityEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Put ("/api/availabilities/{@Id}", x => new { x.Id }); + Put ("/availabilities/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Communication/CreateCommunicationEndpoint.cs b/PyroFetes/Endpoints/Communication/CreateCommunicationEndpoint.cs index 3429d20..052c400 100644 --- a/PyroFetes/Endpoints/Communication/CreateCommunicationEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/CreateCommunicationEndpoint.cs @@ -8,7 +8,7 @@ public class CreateCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Post("/api/communications"); + Post("/communications"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs b/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs index 7cac0f3..99f66b9 100644 --- a/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Delete ("/api/communications/{@Id}", x => new { x.Id }); + Delete ("/communications/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Communication/GetAllCommunicationsEndpoint.cs b/PyroFetes/Endpoints/Communication/GetAllCommunicationsEndpoint.cs index 6ff4e27..a9b6d30 100644 --- a/PyroFetes/Endpoints/Communication/GetAllCommunicationsEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/GetAllCommunicationsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllCommunicationsEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Get ("/api/communications"); + Get ("/communications"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Communication/GetCommunicationEndpoint.cs b/PyroFetes/Endpoints/Communication/GetCommunicationEndpoint.cs index e860621..728370f 100644 --- a/PyroFetes/Endpoints/Communication/GetCommunicationEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/GetCommunicationEndpoint.cs @@ -9,7 +9,7 @@ public class GetCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : E { public override void Configure() { - Get ("/api/communications/{@Id}", x => new { x.Id }); + Get ("/communications/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Communication/UpdateCommunicationEndpoint.cs b/PyroFetes/Endpoints/Communication/UpdateCommunicationEndpoint.cs index f44731f..8fcbc13 100644 --- a/PyroFetes/Endpoints/Communication/UpdateCommunicationEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/UpdateCommunicationEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Put ("/api/communications/{@Id}", x => new { x.Id }); + Put ("/communications/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Contact/CreateContactEndpoint.cs b/PyroFetes/Endpoints/Contact/CreateContactEndpoint.cs index e0a65fc..7710266 100644 --- a/PyroFetes/Endpoints/Contact/CreateContactEndpoint.cs +++ b/PyroFetes/Endpoints/Contact/CreateContactEndpoint.cs @@ -8,7 +8,7 @@ public class CreateContactEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endp { public override void Configure() { - Post("/api/contacts"); + Post("/contacts"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Contact/DeleteContactEndpoint.cs b/PyroFetes/Endpoints/Contact/DeleteContactEndpoint.cs index 530417d..1f561d6 100644 --- a/PyroFetes/Endpoints/Contact/DeleteContactEndpoint.cs +++ b/PyroFetes/Endpoints/Contact/DeleteContactEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Contact/GetAllContactsEndpoint.cs b/PyroFetes/Endpoints/Contact/GetAllContactsEndpoint.cs index e7339d9..acf0739 100644 --- a/PyroFetes/Endpoints/Contact/GetAllContactsEndpoint.cs +++ b/PyroFetes/Endpoints/Contact/GetAllContactsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllContactxuest(PyroFetesDbContext pyroFetesDbContext) : Endpoin { public override void Configure() { - Get ("/api/contacts"); + Get ("/contacts"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Contact/GetContactEndpoint.cs b/PyroFetes/Endpoints/Contact/GetContactEndpoint.cs index 04a4e5e..97f3014 100644 --- a/PyroFetes/Endpoints/Contact/GetContactEndpoint.cs +++ b/PyroFetes/Endpoints/Contact/GetContactEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Contact/UpdateContactRequest.cs b/PyroFetes/Endpoints/Contact/UpdateContactRequest.cs index 8fec9d1..a57948b 100644 --- a/PyroFetes/Endpoints/Contact/UpdateContactRequest.cs +++ b/PyroFetes/Endpoints/Contact/UpdateContactRequest.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Customer/CreateCustomerEndpoint.cs b/PyroFetes/Endpoints/Customer/CreateCustomerEndpoint.cs index 6bce1f4..c2d88ee 100644 --- a/PyroFetes/Endpoints/Customer/CreateCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/Customer/CreateCustomerEndpoint.cs @@ -8,7 +8,7 @@ public class CreateCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End { public override void Configure() { - Post("/api/customers"); + Post("/customers"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Customer/DeleteCustomerEndpoint.cs b/PyroFetes/Endpoints/Customer/DeleteCustomerEndpoint.cs index 703ee11..997ceb7 100644 --- a/PyroFetes/Endpoints/Customer/DeleteCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/Customer/DeleteCustomerEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End { public override void Configure() { - Delete ("/api/customers/{@Id}", x => new { x.Id }); + Delete ("/customers/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Customer/GetAllCustomerEndpoint.cs b/PyroFetes/Endpoints/Customer/GetAllCustomerEndpoint.cs index be9ea63..0d79b76 100644 --- a/PyroFetes/Endpoints/Customer/GetAllCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/Customer/GetAllCustomerEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End { public override void Configure() { - Get ("/api/customers"); + Get ("/customers"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Customer/GetCustomerEndpoint.cs b/PyroFetes/Endpoints/Customer/GetCustomerEndpoint.cs index 30bd36f..a1cbda2 100644 --- a/PyroFetes/Endpoints/Customer/GetCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/Customer/GetCustomerEndpoint.cs @@ -9,7 +9,7 @@ public class GetCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi { public override void Configure() { - Get ("/api/customers/{@Id}", x => new { x.Id }); + Get ("/customers/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Customer/UpdateCustomerEndpoint.cs b/PyroFetes/Endpoints/Customer/UpdateCustomerEndpoint.cs index 0ea7848..4b2ba99 100644 --- a/PyroFetes/Endpoints/Customer/UpdateCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/Customer/UpdateCustomerEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateCustomer(PyroFetesDbContext pyroFetesDbContext) : Endpoint new { x.Id }); + Put ("/customers/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/CustomerType/CreateCustomerTypeEndpoint.cs b/PyroFetes/Endpoints/CustomerType/CreateCustomerTypeEndpoint.cs index 8be7f1e..dbe9aa1 100644 --- a/PyroFetes/Endpoints/CustomerType/CreateCustomerTypeEndpoint.cs +++ b/PyroFetes/Endpoints/CustomerType/CreateCustomerTypeEndpoint.cs @@ -8,7 +8,7 @@ public class CreateCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Post("/api/customertypes"); + Post("/customertypes"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/CustomerType/DeleteCustomerTypeEndpoint.cs b/PyroFetes/Endpoints/CustomerType/DeleteCustomerTypeEndpoint.cs index 9849ad2..49da728 100644 --- a/PyroFetes/Endpoints/CustomerType/DeleteCustomerTypeEndpoint.cs +++ b/PyroFetes/Endpoints/CustomerType/DeleteCustomerTypeEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Delete ("/api/customertypes/{@Id}", x => new { x.Id }); + Delete ("/customertypes/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/CustomerType/GetAllCustomerTypeEndpoint.cs b/PyroFetes/Endpoints/CustomerType/GetAllCustomerTypeEndpoint.cs index e78b1bd..7a0e931 100644 --- a/PyroFetes/Endpoints/CustomerType/GetAllCustomerTypeEndpoint.cs +++ b/PyroFetes/Endpoints/CustomerType/GetAllCustomerTypeEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Get ("/api/customertypes"); + Get ("/customertypes"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/CustomerType/GetCustomerTypeEndpoint.cs b/PyroFetes/Endpoints/CustomerType/GetCustomerTypeEndpoint.cs index 25648d1..87026e5 100644 --- a/PyroFetes/Endpoints/CustomerType/GetCustomerTypeEndpoint.cs +++ b/PyroFetes/Endpoints/CustomerType/GetCustomerTypeEndpoint.cs @@ -9,7 +9,7 @@ public class GetCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : En { public override void Configure() { - Get ("/api/customertypes/{@Id}", x => new { x.Id }); + Get ("/customertypes/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/CustomerType/UpdateCustomerEndpoint.cs b/PyroFetes/Endpoints/CustomerType/UpdateCustomerEndpoint.cs index 53f1741..446a9bd 100644 --- a/PyroFetes/Endpoints/CustomerType/UpdateCustomerEndpoint.cs +++ b/PyroFetes/Endpoints/CustomerType/UpdateCustomerEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateCustomerType(PyroFetesDbContext pyroFetesDbContext) : Endpoin { public override void Configure() { - Put ("/api/customertypes/{@Id}", x => new { x.Id }); + Put ("/customertypes/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ExperienceLevel/CreateExperienceLevelEndpoint.cs b/PyroFetes/Endpoints/ExperienceLevel/CreateExperienceLevelEndpoint.cs index a87fc05..dca8ade 100644 --- a/PyroFetes/Endpoints/ExperienceLevel/CreateExperienceLevelEndpoint.cs +++ b/PyroFetes/Endpoints/ExperienceLevel/CreateExperienceLevelEndpoint.cs @@ -9,7 +9,7 @@ public class CreateExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext { public override void Configure() { - Post("/api/experiencelevels"); + Post("/experiencelevels"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ExperienceLevel/DeleteExerienceLevelEndpoint.cs b/PyroFetes/Endpoints/ExperienceLevel/DeleteExerienceLevelEndpoint.cs index 8f0190f..a51ff5d 100644 --- a/PyroFetes/Endpoints/ExperienceLevel/DeleteExerienceLevelEndpoint.cs +++ b/PyroFetes/Endpoints/ExperienceLevel/DeleteExerienceLevelEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteExerienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Delete ("/api/experiencelevels/{@Id}", x => new { x.Id }); + Delete ("/experiencelevels/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ExperienceLevel/GetAllExperienceLevelsEndpoint.cs b/PyroFetes/Endpoints/ExperienceLevel/GetAllExperienceLevelsEndpoint.cs index f51e754..29a6f3a 100644 --- a/PyroFetes/Endpoints/ExperienceLevel/GetAllExperienceLevelsEndpoint.cs +++ b/PyroFetes/Endpoints/ExperienceLevel/GetAllExperienceLevelsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllExperienceLevelsEndpoint(PyroFetesDbContext pyroFetesDbContex { public override void Configure() { - Get ("/api/experiencelevels"); + Get ("/experiencelevels"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ExperienceLevel/GetExperienceLevelEndpoint.cs b/PyroFetes/Endpoints/ExperienceLevel/GetExperienceLevelEndpoint.cs index aca625a..5d6630b 100644 --- a/PyroFetes/Endpoints/ExperienceLevel/GetExperienceLevelEndpoint.cs +++ b/PyroFetes/Endpoints/ExperienceLevel/GetExperienceLevelEndpoint.cs @@ -9,7 +9,7 @@ public class GetExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Get ("/api/experiencelevels/{@Id}", x => new { x.Id }); + Get ("/experiencelevels/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ExperienceLevel/UpdateExperienceLevelEndpoint.cs b/PyroFetes/Endpoints/ExperienceLevel/UpdateExperienceLevelEndpoint.cs index 932b878..0158e0c 100644 --- a/PyroFetes/Endpoints/ExperienceLevel/UpdateExperienceLevelEndpoint.cs +++ b/PyroFetes/Endpoints/ExperienceLevel/UpdateExperienceLevelEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext { public override void Configure() { - Put ("/api/experiencelevels/{@Id}", x => new { x.Id }); + Put ("/experiencelevels/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/HistoryOfApproval/CreateHistoryOfApprovalEndpoint.cs b/PyroFetes/Endpoints/HistoryOfApproval/CreateHistoryOfApprovalEndpoint.cs index f2a845d..59a98b9 100644 --- a/PyroFetes/Endpoints/HistoryOfApproval/CreateHistoryOfApprovalEndpoint.cs +++ b/PyroFetes/Endpoints/HistoryOfApproval/CreateHistoryOfApprovalEndpoint.cs @@ -8,7 +8,7 @@ public class CreateHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte { public override void Configure() { - Post("/api/historyofapprovals"); + Post("/historyofapprovals"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/HistoryOfApproval/DeleteHistoryOfApprovalEndpoint.cs b/PyroFetes/Endpoints/HistoryOfApproval/DeleteHistoryOfApprovalEndpoint.cs index 7cc5fa7..8206ba9 100644 --- a/PyroFetes/Endpoints/HistoryOfApproval/DeleteHistoryOfApprovalEndpoint.cs +++ b/PyroFetes/Endpoints/HistoryOfApproval/DeleteHistoryOfApprovalEndpoint.cs @@ -9,7 +9,7 @@ public class DeleteHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte { public override void Configure() { - Delete ("/api/historyofapprovals/{@Id}", x => new { x.Id }); + Delete ("/historyofapprovals/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/HistoryOfApproval/GetAllHistoryOfApprovalEndpoint.cs b/PyroFetes/Endpoints/HistoryOfApproval/GetAllHistoryOfApprovalEndpoint.cs index 843d200..f86f6a0 100644 --- a/PyroFetes/Endpoints/HistoryOfApproval/GetAllHistoryOfApprovalEndpoint.cs +++ b/PyroFetes/Endpoints/HistoryOfApproval/GetAllHistoryOfApprovalEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte { public override void Configure() { - Get ("/api/historyofapprovals"); + Get ("/historyofapprovals"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/HistoryOfApproval/GetHistoryOfApprovalEndpoint.cs b/PyroFetes/Endpoints/HistoryOfApproval/GetHistoryOfApprovalEndpoint.cs index d00bc12..2e5107d 100644 --- a/PyroFetes/Endpoints/HistoryOfApproval/GetHistoryOfApprovalEndpoint.cs +++ b/PyroFetes/Endpoints/HistoryOfApproval/GetHistoryOfApprovalEndpoint.cs @@ -9,7 +9,7 @@ public class GetHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Get ("/api/historyofapprovals/{@Id}", x => new { x.Id }); + Get ("/historyofapprovals/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/HistoryOfApproval/UpdateHistoryOfApprovalEndpoint.cs b/PyroFetes/Endpoints/HistoryOfApproval/UpdateHistoryOfApprovalEndpoint.cs index 3d37d7c..6ef9ca0 100644 --- a/PyroFetes/Endpoints/HistoryOfApproval/UpdateHistoryOfApprovalEndpoint.cs +++ b/PyroFetes/Endpoints/HistoryOfApproval/UpdateHistoryOfApprovalEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateHistoryOfApprovalEndpoint(PyroFetesDbContext pyroFetesDbConte { public override void Configure() { - Put ("/api/historyofapprovals/{@Id}", x => new { x.Id }); + Put ("/historyofapprovals/{@Id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Provider/CreateProviderEndpoint.cs b/PyroFetes/Endpoints/Provider/CreateProviderEndpoint.cs index f7f3e99..316fede 100644 --- a/PyroFetes/Endpoints/Provider/CreateProviderEndpoint.cs +++ b/PyroFetes/Endpoints/Provider/CreateProviderEndpoint.cs @@ -8,7 +8,7 @@ public class CreateProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : End { public override void Configure() { - Post("/api/providers"); + Post("/providers"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Provider/DeleteProviderEndpoint.cs b/PyroFetes/Endpoints/Provider/DeleteProviderEndpoint.cs index 7668675..d5648d4 100644 --- a/PyroFetes/Endpoints/Provider/DeleteProviderEndpoint.cs +++ b/PyroFetes/Endpoints/Provider/DeleteProviderEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Provider/GetAllProvidersEndpoint.cs b/PyroFetes/Endpoints/Provider/GetAllProvidersEndpoint.cs index 0ab3848..21275c1 100644 --- a/PyroFetes/Endpoints/Provider/GetAllProvidersEndpoint.cs +++ b/PyroFetes/Endpoints/Provider/GetAllProvidersEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllProvidersEndpoint(PyroFetesDbContext pyroFetesDbContext) : En { public override void Configure() { - Get ("/api/providers"); + Get ("/providers"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Provider/GetProviderEndpoint.cs b/PyroFetes/Endpoints/Provider/GetProviderEndpoint.cs index ecad2f8..ae46248 100644 --- a/PyroFetes/Endpoints/Provider/GetProviderEndpoint.cs +++ b/PyroFetes/Endpoints/Provider/GetProviderEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Provider/UpdateProviderEndpoint.cs b/PyroFetes/Endpoints/Provider/UpdateProviderEndpoint.cs index 9b425a9..f7de9fc 100644 --- a/PyroFetes/Endpoints/Provider/UpdateProviderEndpoint.cs +++ b/PyroFetes/Endpoints/Provider/UpdateProviderEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/ProviderType/CreateProviderTypeEndpoint.cs b/PyroFetes/Endpoints/ProviderType/CreateProviderTypeEndpoint.cs index a82ae38..1e92cc2 100644 --- a/PyroFetes/Endpoints/ProviderType/CreateProviderTypeEndpoint.cs +++ b/PyroFetes/Endpoints/ProviderType/CreateProviderTypeEndpoint.cs @@ -8,7 +8,7 @@ public class CreateProviderTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : { public override void Configure() { - Post("/api/providertypes"); + Post("/providertypes"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ProviderType/DeleteProviderTypeEndpoint.cs b/PyroFetes/Endpoints/ProviderType/DeleteProviderTypeEndpoint.cs index c075a21..4f05db7 100644 --- a/PyroFetes/Endpoints/ProviderType/DeleteProviderTypeEndpoint.cs +++ b/PyroFetes/Endpoints/ProviderType/DeleteProviderTypeEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/ProviderType/GetAllProviderTypesEndpoint.cs b/PyroFetes/Endpoints/ProviderType/GetAllProviderTypesEndpoint.cs index 61f454e..9eef2e3 100644 --- a/PyroFetes/Endpoints/ProviderType/GetAllProviderTypesEndpoint.cs +++ b/PyroFetes/Endpoints/ProviderType/GetAllProviderTypesEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllProviderTypesEndpoint(PyroFetesDbContext pyroFetesDbContext) { public override void Configure() { - Get ("/api/providertype"); + Get ("/providertype"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/ProviderType/GetProviderTypeEndpoint.cs b/PyroFetes/Endpoints/ProviderType/GetProviderTypeEndpoint.cs index 783771c..4c93387 100644 --- a/PyroFetes/Endpoints/ProviderType/GetProviderTypeEndpoint.cs +++ b/PyroFetes/Endpoints/ProviderType/GetProviderTypeEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/ProviderType/UpdateProviderTypeEndpoint.cs b/PyroFetes/Endpoints/ProviderType/UpdateProviderTypeEndpoint.cs index ce0fb83..af596f8 100644 --- a/PyroFetes/Endpoints/ProviderType/UpdateProviderTypeEndpoint.cs +++ b/PyroFetes/Endpoints/ProviderType/UpdateProviderTypeEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Staff/CreateStaffEndpoint.cs b/PyroFetes/Endpoints/Staff/CreateStaffEndpoint.cs index bdaec96..b3b3e45 100644 --- a/PyroFetes/Endpoints/Staff/CreateStaffEndpoint.cs +++ b/PyroFetes/Endpoints/Staff/CreateStaffEndpoint.cs @@ -8,7 +8,7 @@ public class CreateStaffEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi { public override void Configure() { - Post("/api/staffs"); + Post("/staffs"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Staff/DeleteStaffEndpoint.cs b/PyroFetes/Endpoints/Staff/DeleteStaffEndpoint.cs index b57e85d..4cc5f35 100644 --- a/PyroFetes/Endpoints/Staff/DeleteStaffEndpoint.cs +++ b/PyroFetes/Endpoints/Staff/DeleteStaffEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Staff/GetAllStaffsEndpoint.cs b/PyroFetes/Endpoints/Staff/GetAllStaffsEndpoint.cs index e06c013..67c0a36 100644 --- a/PyroFetes/Endpoints/Staff/GetAllStaffsEndpoint.cs +++ b/PyroFetes/Endpoints/Staff/GetAllStaffsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllStaffsEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpo { public override void Configure() { - Get ("/api/staffs"); + Get ("/staffs"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Staff/GetStaffEndpoint.cs b/PyroFetes/Endpoints/Staff/GetStaffEndpoint.cs index 2f208e3..1f57b83 100644 --- a/PyroFetes/Endpoints/Staff/GetStaffEndpoint.cs +++ b/PyroFetes/Endpoints/Staff/GetStaffEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Staff/UpdateStaffRequest.cs b/PyroFetes/Endpoints/Staff/UpdateStaffRequest.cs index a17012e..1e6701d 100644 --- a/PyroFetes/Endpoints/Staff/UpdateStaffRequest.cs +++ b/PyroFetes/Endpoints/Staff/UpdateStaffRequest.cs @@ -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(); } diff --git a/PyroFetes/Program.cs b/PyroFetes/Program.cs index 03ac2b2..213d784 100644 --- a/PyroFetes/Program.cs +++ b/PyroFetes/Program.cs @@ -19,7 +19,7 @@ builder.Services.AddCors(options => { options.AddDefaultPolicy(policyBuilder => { policyBuilder - .WithOrigins("http://localhost:4200") + .WithOrigins("http://localhost:5298") .WithMethods("GET", "POST", "PUT", "PATCH", "DELETE") .AllowAnyHeader(); });