This commit is contained in:
skiffer-git
2022-08-12 21:48:13 +08:00
parent b8aa54a159
commit 4e5c1606f3
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func main() {
gin.SetMode(gin.ReleaseMode)
f, _ := os.Create("../logs/api.log")
gin.DefaultWriter = io.MultiWriter(f)
gin.SetMode(gin.DebugMode)
// gin.SetMode(gin.DebugMode)
r := gin.Default()
r.Use(utils.CorsHandler())