Merge branch 'main' of https://github.com/Poomipat-Ch/taobin_recipe_manager
This commit is contained in:
commit
b7b4bca78e
10 changed files with 214 additions and 77 deletions
|
|
@ -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)
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue