Skip to content

Commit

Permalink
Update AuthwithToken 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fchrgrib committed Jun 15, 2023
1 parent df60421 commit 029b3f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/wallpaperpage/UploadWallpaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package wallpaperpage
import (
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/libs/middleware"
"github.com/libs/utils/data"
"github.com/models"
"net/http"
Expand Down Expand Up @@ -62,6 +63,7 @@ func UploadWallpaper(c *gin.Context, router *gin.RouterGroup) {

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

3 comments on commit 029b3f1

@vercel
Copy link

@vercel vercel bot commented on 029b3f1 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 029b3f1 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 029b3f1 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.