라우터
우체부 get--http://localhost:3001/createrecipe/1
get--http://localhost:3001/createrecipe/1
단품 상세정보는 상세페이지와 포스트맨에서 확인하셔야 합니다.
에 app.use("/recipes",recipesRouter)中,您正在为recipesRouter中的所有路由添加/recipes前缀,但您正在调用http://localhost:3001/createrecipe/1 而不是 http://localhost:3001/recipes/createrecipe/1
app.use("/recipes",recipesRouter)
recipesRouter
/recipes
http://localhost:3001/createrecipe/1
http://localhost:3001/recipes/createrecipe/1
에
app.use("/recipes",recipesRouter)
中,您正在为recipesRouter
中的所有路由添加/recipes
前缀,但您正在调用http://localhost:3001/createrecipe/1
而不是http://localhost:3001/recipes/createrecipe/1