tariffs/internal/controller/tariff_internal/route.go

17 lines
369 B
Go
Raw Normal View History

2024-07-23 11:27:56 +00:00
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)
2024-07-23 11:27:56 +00:00
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"
}