mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2025-01-09 06:10:09 -05:00
17 lines
396 B
Go
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))
|
|
})
|
|
}
|