package vods import ( "safetwitch-backend/extractor" "safetwitch-backend/extractor/twitch" "github.com/gin-gonic/gin" ) func Routes(route *gin.Engine) { auth := route.Group("/api/vods") auth.GET("/shelve/:streamerName", func(context *gin.Context) { data, _ := twitch.GetStreamerVideoShelves(context.Param("streamerName")) context.JSON(200, extractor.FormatMessage(data, true)) }) }