fix: path url and add docs

This commit is contained in:
ericprd
2025-02-24 20:27:07 +08:00
parent d492f3ce44
commit 037acbe128
2 changed files with 145 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ func GetAllPlan(
router chi.Router,
subsPlanSvc subscribeplansvc.SubsPlanIntf,
) {
router.Get("/get-plans", func(w http.ResponseWriter, r *http.Request) {
router.Get("/subscribe-plan/get-all", func(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
subsPlan, err := subsPlanSvc.GetAllPlan()
if err != nil {