This commit is contained in:
Andreas Mieke 2021-03-08 00:59:57 +01:00
parent 4bdf0a8b09
commit bf4d6a0bc4

View file

@ -111,7 +111,7 @@ func encode(c *gin.Context) {
} }
if URL.Short.Valid { if URL.Short.Valid {
c.Data(http.StatusOK, "text/plain", []byte(viper.GetString("ShortURL")+"/"+URL.Short.String)) c.Data(http.StatusOK, "text/plain", []byte(viper.GetString("ShortURL")+"/r/"+URL.Short.String))
return return
} }
URL.Short.String = c.DefaultPostForm("ShortURL", "") URL.Short.String = c.DefaultPostForm("ShortURL", "")