package router

import (
	"kra/internal/server/handler"

	"github.com/gin-gonic/gin"
)

func RegisterIntegrationConfig(group *gin.RouterGroup, h *handler.IntegrationConfig) {
	configs := group.Group("/integration/configs")
	configs.GET("/:kind", h.List)
	configs.GET("/:kind/:provider", h.Find)
	configs.PUT("/:kind/:provider", h.Save)
	configs.POST("/:kind/:provider/test", h.Test)
	configs.DELETE("/:kind/:provider", h.Delete)
}
