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

This commit is contained in:
timerzz 2024-09-01 13:25:36 +08:00
parent ae697b4b0c
commit 9f24da3d19

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)