tested google sheet it workgit add!!!

This commit is contained in:
Kenta420 2023-10-04 15:26:35 +07:00
parent 6193d1f4a8
commit 529477887b
3 changed files with 43 additions and 19 deletions

View file

@ -17,6 +17,7 @@ import (
"recipe-manager/services/cli"
"recipe-manager/services/logger"
"recipe-manager/services/oauth"
"recipe-manager/services/sheet"
"strings"
"sync"
"time"
@ -437,7 +438,14 @@ func (s *Server) createHandler() {
})
// Recipe Router
rr := routers.NewRecipeRouter(database)
sheetService, err := sheet.NewSheetService(context.Background())
if err != nil {
Log.Fatal("Error while trying to create sheet service: ", zap.Error(err))
return
}
rr := routers.NewRecipeRouter(database, sheetService)
rr.Route(r)
})