feat: pass access to cache

This commit is contained in:
2025-06-07 19:15:00 +02:00
parent b9ccf6adac
commit 19d56159ba

View File

@ -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)