tariffs/internal/controller/tariff_internal/route.go
skeris e856662cb8
Some checks failed
Deploy / CreateImage (push) Failing after 34s
Deploy / DeployService (push) Has been skipped
fix: move tariff/getList higher to avoid /tariff/:id mistale
2025-06-07 23:42:40 +03:00

17 lines
369 B
Go

package tariff_internal
import "github.com/gofiber/fiber/v2"
func (t *TariffInternal) Register(router fiber.Router) {
router.Get("/getList", t.GetList)
router.Get("/:id", t.Get)
router.Post("/", t.Create)
router.Delete("/", t.Delete)
router.Put("/:id", t.Update)
router.Post("/restore", t.Restore)
}
func (t *TariffInternal) Name() string {
return "tariff"
}