feat: able to test channels now (#59)

This commit is contained in:
JustSong
2023-05-15 10:48:52 +08:00
parent b44f0519a0
commit 443a22b75d
4 changed files with 133 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.GET("/", controller.GetAllChannels)
channelRoute.GET("/search", controller.SearchChannels)
channelRoute.GET("/:id", controller.GetChannel)
channelRoute.GET("/test/:id", controller.TestChannel)
channelRoute.POST("/", controller.AddChannel)
channelRoute.PUT("/", controller.UpdateChannel)
channelRoute.DELETE("/:id", controller.DeleteChannel)