mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-29 19:06:35 +08:00
feat: 新增终端回放记录&其他小优化
This commit is contained in:
@@ -47,7 +47,7 @@ func InitRouter() *gin.Engine {
|
||||
// 设置静态资源
|
||||
if staticConfs := serverConfig.Static; staticConfs != nil {
|
||||
for _, scs := range *staticConfs {
|
||||
router.Static(scs.RelativePath, scs.Root)
|
||||
router.StaticFS(scs.RelativePath, http.Dir(scs.Root))
|
||||
}
|
||||
}
|
||||
// 设置静态文件
|
||||
|
||||
Reference in New Issue
Block a user