feat: set Gin to release mode in NewServer function

This commit is contained in:
mlogclub
2026-05-24 20:10:20 +08:00
parent 467759d547
commit 8bbd6c9414
+3
View File
@@ -23,6 +23,9 @@ import (
func NewServer() (*gin.Engine, error) {
cfg := config.Current()
gin.SetMode(gin.ReleaseMode)
app := gin.New()
app.Use(corsMiddleware())
app.Use(gin.Recovery())