feat: implemented own profile getter;
experiment: using custom automapper function to map profile to profileDto; refactor: adjusted ProfileService to use pointer return types with models
This commit is contained in:
@@ -234,5 +234,5 @@ func (ctrl *ProfileController) uploadAvatar(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, dto.UrlDto{Url: link})
|
||||
c.JSON(http.StatusOK, dto.UrlDto{Url: *link})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user