0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 05:02:58 -05:00

More sensical link

This commit is contained in:
dragongoose 2023-08-21 23:43:54 -04:00
parent cc1f5ef77b
commit 71fd5dbe37
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -10,7 +10,7 @@ import (
func Routes(route *gin.Engine) { func Routes(route *gin.Engine) {
clips := route.Group("/api/clips") clips := route.Group("/api/clips")
clips.GET("/getlink/:slug", func(context *gin.Context) { clips.GET("/cliplink/:slug", func(context *gin.Context) {
slug := context.Param("slug") slug := context.Param("slug")
data, err := twitch.GetClipLink(slug) data, err := twitch.GetClipLink(slug)
if err != nil { if err != nil {