package router

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

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