0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2025-01-09 06:10:09 -05:00
safetwitch-backend/routes/api/vods/homeShelves.go
2023-07-04 20:57:38 -04:00

17 lines
396 B
Go

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))
})
}