diff --git a/internal/api/http/subscribe_plan/get_all.go b/internal/api/http/subscribe_plan/get_all.go index c42b4ad..6fcaa3e 100644 --- a/internal/api/http/subscribe_plan/get_all.go +++ b/internal/api/http/subscribe_plan/get_all.go @@ -12,7 +12,7 @@ func GetAllPlan( router chi.Router, subsPlanSvc subscribeplansvc.SubsPlanIntf, ) { - router.Get("/subscribe-plan/get-all", func(w http.ResponseWriter, r *http.Request) { + router.Get("/subscribe-plan", func(w http.ResponseWriter, r *http.Request) { ctx := r.Context() subsPlan, err := subsPlanSvc.GetAllPlan() if err != nil { diff --git a/openapi.yml b/openapi.yml index 44ca381..c410cf8 100644 --- a/openapi.yml +++ b/openapi.yml @@ -298,7 +298,7 @@ paths: message: type: string - /subscribe-plan/get-all: + /subscribe-plan: get: summary: Get all subscription plans tags: