框架基本搭建完成

This commit is contained in:
2022-04-03 12:30:50 +08:00
commit ec4c957b25
31 changed files with 1353 additions and 0 deletions

8
pkg/middleware/global.go Normal file
View File

@@ -0,0 +1,8 @@
package middleware
import "github.com/kataras/iris/v12"
func AllowAllCORS(ctx iris.Context) {
ctx.Header("Access-Control-Allow-Origin", "*")
ctx.Next()
}