Skip to content

Commit

Permalink
fix: Removed some old REST endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvarezdev committed Dec 12, 2024
1 parent fc829b9 commit d304c5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions config/rest/api/v1/shops/businesses/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
4 changes: 1 addition & 3 deletions config/rest/api/v1/shops/businesses/mappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

0 comments on commit d304c5e

Please sign in to comment.