This commit is contained in:
parent
ae697b4b0c
commit
9f24da3d19
@ -23,7 +23,7 @@ func main() {
|
|||||||
glog.Fatalf("init database failed: %v", err)
|
glog.Fatalf("init database failed: %v", err)
|
||||||
}
|
}
|
||||||
// 初始化服务
|
// 初始化服务
|
||||||
r := fiber.New()
|
r := fiber.New(fiber.Config{ErrorHandler: web.ErrHandle})
|
||||||
r.Use(cors.New(), recover.New())
|
r.Use(cors.New(), recover.New())
|
||||||
|
|
||||||
stg := storage.NewStorage(db)
|
stg := storage.NewStorage(db)
|
||||||
|
Loading…
Reference in New Issue
Block a user