Add /r/
This commit is contained in:
parent
4bdf0a8b09
commit
bf4d6a0bc4
|
@ -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", "")
|
||||||
|
|
Loading…
Reference in a new issue