feat 添加errhandle
All checks were successful
Build image / build (push) Successful in 52s

This commit is contained in:
timerzz 2024-09-01 13:25:36 +08:00
parent 4b3d2465b9
commit 8f623512c2

View File

@ -23,7 +23,7 @@ func main() {
glog.Fatalf("init database failed: %v", err)
}
// 初始化服务
r := fiber.New()
r := fiber.New(fiber.Config{ErrorHandler: web.ErrHandle})
r.Use(cors.New(), recover.New())
stg := storage.NewStorage(db)