Skip to content

Commit

Permalink
fix img path
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorPolyakov committed Jul 21, 2024
1 parent c3ce70f commit 0b52af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/utils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func ToNullString(s *string) sql.NullString {
}

func WithDefault(img string) string {
return "http://localhost:4102/api/v1/avatar/" + url.QueryEscape(img)
return "api/v1/avatar/" + url.QueryEscape(img)
}

func RespondWithJSON(w http.ResponseWriter, code int, payload interface{}) {
Expand Down

0 comments on commit 0b52af7

Please sign in to comment.