Skip to content

Commit

Permalink
🐛 fix: wrong middleware usage in js route
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Dec 4, 2024
1 parent 2d84196 commit e471201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/webutil/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func initRoute(r *gin.Engine) {

js := r.Group("js")
{
static.Use(middleware.Cache())
js.Use(middleware.Cache())
js.StaticFile("", config.DistPath+"/busuanzi.js")
js.StaticFile("/jsonp", config.DistPath+"/busuanzi.jsonp.js")
js.StaticFile("/lite", config.DistPath+"/busuanzi.lite.js")
Expand Down

0 comments on commit e471201

Please sign in to comment.