-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
route get/post/popuplate 질문드립니다.
21.07.21 05:14 작성 조회수 110
0
초반부에 있던 axios.get을 post로 변경하셨는데,
이것은
router.post("/", auth, uploadS3.none(),
을 위한거 맞나요?
후반부에 서버에서 작성한 router.get~은
추후 나올 postDetail에 대한 요청이 맞나용?
프론트단과 서버단의 get, post가 참 헷갈리네여
추가로 popuplate에서 아래두개의 코드가 같은 코드인지 궁금합니다.
.popuplate("creator", "name")
.popuplate({ path: category, select:
"categoryName" });
.popuplate({ path: creator, select:
"name" })
.popuplate({ path: category, select:
"categoryName" });
답변을 작성해보세요.
답변 1