This commit is contained in:
parent
4b3d2465b9
commit
8f623512c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user