package routes import ( "github.com/gofiber/fiber/v2" "github.com/break/junhong_cmp_fiber/internal/handler/admin" "github.com/break/junhong_cmp_fiber/pkg/openapi" ) func registerShopRoutes(router fiber.Router, handler *admin.ShopHandler, doc *openapi.Generator, basePath string) { router.Get("/shops", handler.List) router.Post("/shops", handler.Create) router.Put("/shops/:id", handler.Update) router.Delete("/shops/:id", handler.Delete) } func registerShopAccountRoutes(router fiber.Router, handler *admin.ShopAccountHandler, doc *openapi.Generator, basePath string) { router.Get("/shop-accounts", handler.List) router.Post("/shop-accounts", handler.Create) router.Put("/shop-accounts/:id", handler.Update) router.Put("/shop-accounts/:id/password", handler.UpdatePassword) router.Put("/shop-accounts/:id/status", handler.UpdateStatus) }