diff --git a/internal/web/routes.go b/internal/web/routes.go index 71a69cf..cefa6fb 100644 --- a/internal/web/routes.go +++ b/internal/web/routes.go @@ -150,7 +150,7 @@ func encode(c *gin.Context) { c.AbortWithError(http.StatusBadRequest, err) return } - c.Data(http.StatusCreated, "text/plain", []byte(viper.GetString("ShortURL")+"/"+URL.Short.String)) + c.Data(http.StatusCreated, "text/plain", []byte(viper.GetString("ShortURL")+"/r/"+URL.Short.String)) return }