日志生效,
调整路由注册方式
This commit is contained in:
1 parent
2fe2c96e82
commit
7d8a267da7
8 files changed
+148
-33
No files matched your search
@@ -8,7 +8,8 @@ func InitMiddleware(r *gin.Engine) {
|
||||
// 日志处理
|
||||
r.Use(LoggerToFile())
|
||||
// 自定义错误处理
|
||||
r.Use(CustomError)
|
||||
//todo 上线改回
|
||||
//r.Use(CustomError)
|
||||
// NoCache is a middleware function that appends headers
|
||||
r.Use(NoCache)
|
||||
// 跨域处理
|
||||
|
||||
Reference in new issue
Block a user