prompt 6
This commit is contained in:
@@ -51,7 +51,9 @@ func NewApp(cfg *config.Config) (*fiber.App, error) {
|
||||
}
|
||||
}
|
||||
|
||||
apphttp.RegisterRoutes(app, store, database, cfg)
|
||||
if err := apphttp.RegisterRoutes(app, store, database, cfg); err != nil {
|
||||
return nil, fmt.Errorf("register routes: %w", err)
|
||||
}
|
||||
|
||||
return app, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user