diff --git a/cmd/hspguard/api/api.go b/cmd/hspguard/api/api.go index b84d996..3fabc5e 100644 --- a/cmd/hspguard/api/api.go +++ b/cmd/hspguard/api/api.go @@ -44,7 +44,7 @@ func (s *APIServer) Run() error { // staticDir := http.Dir(filepath.Join(workDir, "static")) // FileServer(router, "/static", staticDir) - oauthHandler := oauth.NewOAuthHandler(s.repo, s.cfg) + oauthHandler := oauth.NewOAuthHandler(s.repo, s.cache, s.cfg) router.Route("/api/v1", func(r chi.Router) { userHandler := user.NewUserHandler(s.repo, s.storage, s.cfg)