mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-12 13:03:45 +08:00
优化home模块页面错误处理
This commit is contained in:
15
server/internal/logic/middleware/home_auth.go
Normal file
15
server/internal/logic/middleware/home_auth.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
// HomeAuth 前台页面鉴权中间件
|
||||
func (s *sMiddleware) HomeAuth(r *ghttp.Request) {
|
||||
r.Response.Header().Set("Content-Type", "text/html")
|
||||
|
||||
// 鉴权
|
||||
// ...
|
||||
|
||||
r.Middleware.Next()
|
||||
}
|
Reference in New Issue
Block a user