mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-22 05:02:58 -05:00
Fix label
This commit is contained in:
parent
76c343d63c
commit
927c3fc3d5
1 changed files with 4 additions and 2 deletions
|
@ -20,12 +20,14 @@ func Routes(route *gin.Engine) {
|
||||||
context.JSON(200, extractor.FormatMessage(data, true))
|
context.JSON(200, extractor.FormatMessage(data, true))
|
||||||
})
|
})
|
||||||
|
|
||||||
vods.GET("/:streamerName", func(context *gin.Context) {
|
vods.GET("/:vodID", func(context *gin.Context) {
|
||||||
data, err := twitch.GetVodMetadata(context.Param("streamerName"))
|
data, err := twitch.GetVodMetadata(context.Param("vodID"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
context.Error(err)
|
context.Error(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data.Type = "vod"
|
||||||
context.JSON(200, extractor.FormatMessage(data, true))
|
context.JSON(200, extractor.FormatMessage(data, true))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue