Skip to content

Commit

Permalink
Update AuthwithToken 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fchrgrib committed Jun 15, 2023
1 parent 51dce6d commit 5eeeea0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/profile/UploadPhotoProfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ func PhotoProfileUpload(c *gin.Context, router *gin.Engine) {

if fileStat.Size() != 0 {
rProfile := router.Group("photo_profile")
rProfile.Use(middleware.AuthWithToken)
rProfile.Use(func(context *gin.Context) {
middleware.AuthWithToken(c)
})
rProfile.GET(uid, func(c *gin.Context) {
c.File(path)
})
Expand Down

3 comments on commit 5eeeea0

@vercel
Copy link

@vercel vercel bot commented on 5eeeea0 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 5eeeea0 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 5eeeea0 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.