From ba075b67fd53d2dab8723bfe906e2e405b0ccffe Mon Sep 17 00:00:00 2001 From: ericprd Date: Tue, 25 Feb 2025 14:23:59 +0800 Subject: [PATCH] fix: change path get all subscribe plan --- internal/api/http/subscribe_plan/get_all.go | 2 +- openapi.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: