Ver código fonte

配置处理

yxh 4 anos atrás
pai
commit
26e0689367
2 arquivos alterados com 1 adições e 3 exclusões
  1. 1 0
      .gitignore
  2. 0 3
      router/router.go

+ 1 - 0
.gitignore

@@ -8,6 +8,7 @@
 .vscode/
 vender/
 data/log/
+data/gen_sql/
 data/session/
 composer.lock
 gitpush.sh

+ 0 - 3
router/router.go

@@ -11,11 +11,8 @@ import (
 
 func init() {
 	s := g.Server()
-
 	//跨域处理
 	s.Use(middleware.CORS)
-	// 添加URI与静态目录的映射
-	s.AddStaticPath("/static", g.Cfg().GetString("server.ServerRoot"))
 	s.Group("/", func(group *ghttp.RouterGroup) {
 
 		//上传的文件允许跨域请求