Skip to content

Commit

Permalink
Update AuthwithToken 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
fchrgrib committed Jun 15, 2023
1 parent 4a4d31b commit 05a1902
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/profile/UpdatePhotoProfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func UpdatePhotoProfile(c *gin.Context, router *gin.RouterGroup) {
}

photoProfileUser.Path = path
user.PhotoProfile = "https://wallpapercollectapi-production-c728.up.railway.app/wallpaper/photo_profile/" + uid
user.PhotoProfile = "https://wallpapercollectapi-production-c728.up.railway.app/photo_profile/" + uid
if err := db.Table("photo_profile").Save(&photoProfileUser).Error; err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"status": err,
Expand Down
2 changes: 1 addition & 1 deletion controllers/wallpaperpage/WallpaperCollection.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func WallpaperCollection(c *gin.Context) {
for _, value := range wallpaperCollect {
wallpaperStatus = append(
wallpaperStatus, models.Images{
ImageUrl: "https://wallpapercollectapi-production-c728.up.railway.app/wallpaper/images/" + value.ImageId + "/",
ImageUrl: "https://wallpapercollectapi-production-c728.up.railway.app/images/" + value.ImageId + "/",
ImageId: value.ImageId,
ImageName: value.ImageName,
})
Expand Down
2 changes: 1 addition & 1 deletion handlers/routers/Profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Profile(routers *gin.Engine) {
profileRouter.GET("", profile.Info)
profileRouter.PUT("/update_profile_desc", profile.UpdateProfileDescription)

rProfile := privateRouters.Group("photo_profile")
rProfile := routers.Group("photo_profile")

profileRouter.PUT("/update_profile_picture", func(c *gin.Context) {
profile.UpdatePhotoProfile(c, rProfile)
Expand Down
2 changes: 1 addition & 1 deletion handlers/routers/WallpaperPage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func WallpaperPage(routers *gin.Engine) {
privateRouters.Use(middleware.JWT)
privateRouters.GET("", wallpaperpage.WallpaperCollection)

rImage := privateRouters.Group("/images")
rImage := routers.Group("/images")
privateRouters.POST("/upload", func(c *gin.Context) {
wallpaperpage.UploadWallpaper(c, rImage)
})
Expand Down

3 comments on commit 05a1902

@vercel
Copy link

@vercel vercel bot commented on 05a1902 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 05a1902 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 05a1902 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.