mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Test: policy model
This commit is contained in:
@@ -16,7 +16,7 @@ func InitRouter() *gin.Engine {
|
||||
*/
|
||||
r.Use(middleware.Session(conf.SystemConfig.SessionSecret))
|
||||
|
||||
// 测试模式加加入Mock助手中间件
|
||||
// 测试模式加入Mock助手中间件
|
||||
if gin.Mode() == gin.TestMode {
|
||||
r.Use(middleware.MockHelper())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user