aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.go b/backend/main.go
index 7220ca6..44d6bbe 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -107,11 +107,11 @@ func main() {
apiGroup.Use(api.SessionCookieMiddleware(queries))
apiGroup.Use(oapimiddleware.OapiRequestValidator(openAPISpec))
gameSvc := game.NewService(queries, txm, gameHub)
- tournamentSvc := tournament.NewService(queries)
+ tournamentSvc := tournament.NewService(queries, txm)
apiHandler := api.NewHandler(gameSvc, tournamentSvc, authenticator, queries, conf)
api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, nil))
- adminHandler := admin.NewHandler(queries, txm, gameHub, conf)
+ adminHandler := admin.NewHandler(gameSvc, tournamentSvc, queries, conf)
adminGroup := e.Group(conf.BasePath + "admin")
adminGroup.Use(api.SessionCookieMiddleware(queries))
adminHandler.RegisterHandlers(adminGroup)