From d304c5ea6b1be5d2b79215739122223c53d27e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20=C3=81lvarez?= <86166683+ralvarezdev@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:43:13 -0400 Subject: [PATCH] fix: Removed some old REST endpoints --- config/rest/api/v1/shops/businesses/endpoints.go | 2 -- config/rest/api/v1/shops/businesses/mappers.go | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/rest/api/v1/shops/businesses/endpoints.go b/config/rest/api/v1/shops/businesses/endpoints.go index 9b0437a..cfca2d8 100644 --- a/config/rest/api/v1/shops/businesses/endpoints.go +++ b/config/rest/api/v1/shops/businesses/endpoints.go @@ -12,6 +12,4 @@ var ( Relative = typesrest.NewRelativeEndpoint() ByBusinessId = typesrest.NewRelativeEndpoint(typesrest.BusinessId) ProfilePictureByBusinessId = typesrest.NewEndpoint("profile-picture", typesrest.BusinessId) - SuspendByBusinessId = typesrest.NewEndpoint("suspend", typesrest.BusinessId) - ActivateByBusinessId = typesrest.NewEndpoint("activate", typesrest.BusinessId) ) diff --git a/config/rest/api/v1/shops/businesses/mappers.go b/config/rest/api/v1/shops/businesses/mappers.go index de2d8ae..a662507 100644 --- a/config/rest/api/v1/shops/businesses/mappers.go +++ b/config/rest/api/v1/shops/businesses/mappers.go @@ -14,7 +14,5 @@ var ( ProfilePictureByBusinessId, grpcshop.SetBusinessProfilePicture, ) - SuspendBusinessMapper = typesrest.NewMapper(SuspendByBusinessId, grpcshop.SuspendBusiness) - ActivateBusinessMapper = typesrest.NewMapper(ActivateByBusinessId, grpcshop.ActivateBusiness) - DeleteBusinessMapper = typesrest.NewMapper(ByBusinessId, grpcshop.DeleteBusiness) + DeleteBusinessMapper = typesrest.NewMapper(ByBusinessId, grpcshop.DeleteBusiness) )