Skip to content

Commit fdc8ab7

Browse files
authored
Update router.go
1 parent 87b3b5e commit fdc8ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/initialize/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func Routers() *gin.Engine {
2828
// Router.Static("/static", "./dist/assets") // dist里面的静态资源
2929
// Router.StaticFile("/", "./dist/index.html") // 前端网页入口页面
3030

31-
Router.StaticFS(global.GVA_CONFIG.Local.Path, http.Dir(global.GVA_CONFIG.Local.StorePath)) // 为用户头像和文件提供静态地址
31+
Router.StaticFS(global.GVA_CONFIG.Local.StorePath, http.Dir(global.GVA_CONFIG.Local.StorePath)) // 为用户头像和文件提供静态地址
3232
// Router.Use(middleware.LoadTls()) // 如果需要使用https 请打开此中间件 然后前往 core/server.go 将启动模式 更变为 Router.RunTLS("端口","你的cre/pem文件","你的key文件")
3333
// 跨域,如需跨域可以打开下面的注释
3434
// Router.Use(middleware.Cors()) // 直接放行全部跨域请求

0 commit comments

Comments
 (0)