diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mediaplayer/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/mediaplayer/main.go b/cmd/mediaplayer/main.go index 812e984..68e59e1 100644 --- a/cmd/mediaplayer/main.go +++ b/cmd/mediaplayer/main.go @@ -84,6 +84,7 @@ func run(args []string) error { adminSvc := service.NewAdminService(store, clk, hasher, fsScanner, cfg.MediaRoot) progressSvc := service.NewProgressService(store, clk) + authSvc := service.NewAuthService(store, clk, hasher, sm) // Start the background GC worker that hard-deletes soft-deleted media. gcWorker := service.NewGCWorker(store, clk, cfg.MediaRoot, time.Duration(cfg.GCIntervalMinutes)*time.Minute, logger) @@ -91,7 +92,7 @@ func run(args []string) error { defer gcWorker.Stop() staticFS := http.Dir("web") - server := api.NewServer(store, hasher, sm, cfg, mediaSvc, adminSvc, progressSvc, staticFS) + server := api.NewServer(store, hasher, sm, cfg, mediaSvc, adminSvc, progressSvc, authSvc, staticFS) gs := api.NewGracefulServer(server, cfg) |
