Fix returned URL on encode

This commit is contained in:
Andreas Mieke 2021-03-07 22:27:32 +01:00
parent 67bd6a3e0c
commit 49c17d0995

View file

@ -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
}