프론트엔드 API 코드 구조 #796
seongwon030
started this conversation in
Best Practices
Replies: 1 comment 6 replies
-
|
현재 api모두 securefetch, fetch로 api 요청 -> json응답 및 에러 핸들링을 매번 api생성시에 만들게되는데 작성하는 코더가 달라 각 코드의 일관성이 부족한 면이있습니다. axios 형태로 module.post( |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
현재 api 코드는 도메인마다 분리되어 있는 것도 있고 아닌 것도 있습니다.
각 api 내에서 body나 header를 일일이 작성해야 하는 귀찮음도 존재합니다. 그래서 api 공통 모듈을 만들면 좋을 것 같아요.
이와 관련하여 가장 고쳤으면 좋겠거나 내가 생각하는 최고의 구조를 마음껏 제안해주세요. api 관련된 얘기라면 무엇이든 좋습니다.
Beta Was this translation helpful? Give feedback.
All reactions