diff --git a/routes/api/vods/vods.go b/routes/api/vods/vods.go index 843a612..3fe153d 100644 --- a/routes/api/vods/vods.go +++ b/routes/api/vods/vods.go @@ -20,12 +20,14 @@ func Routes(route *gin.Engine) { context.JSON(200, extractor.FormatMessage(data, true)) }) - vods.GET("/:streamerName", func(context *gin.Context) { - data, err := twitch.GetVodMetadata(context.Param("streamerName")) + vods.GET("/:vodID", func(context *gin.Context) { + data, err := twitch.GetVodMetadata(context.Param("vodID")) if err != nil { context.Error(err) return } + + data.Type = "vod" context.JSON(200, extractor.FormatMessage(data, true)) })