update recipe detail and recipe detail list

This commit is contained in:
Kenta420 2023-11-24 17:47:44 +07:00
parent 8b45ed53ee
commit d52cad09fd
16 changed files with 947 additions and 458 deletions

View file

@ -16,6 +16,7 @@ import (
"recipe-manager/routers"
"recipe-manager/services/logger"
"recipe-manager/services/oauth"
"recipe-manager/services/recipe"
"recipe-manager/services/sheet"
"strings"
"sync"
@ -429,8 +430,11 @@ func (s *Server) createHandler() {
return
}
// Recipe Service
rs := recipe.NewRecipeService(database)
// Recipe Router
rr := routers.NewRecipeRouter(database, sheetService)
rr := routers.NewRecipeRouter(database, rs, sheetService)
rr.Route(r)
// Material Router