Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: axios instance 구현 #53

Merged
merged 1 commit into from
Aug 4, 2024
Merged

feat: axios instance 구현 #53

merged 1 commit into from
Aug 4, 2024

Conversation

eomseona
Copy link
Contributor

@eomseona eomseona commented Aug 4, 2024

📌 관련 이슈

#51

✨ 과제 내용

axios 호출 시 반복되는 코드를 줄이기 위해 인스턴스를 구현했습니다.
호출 방법은 아래 첨부해놓겠습니다.

📸 스크린샷(선택)

  1. api 디렉토리에 함수 이름을 작성한 후
  2. 아래와 같이 호출.
  • 토큰이 필요없는 경우(로그인 Only) baseInstance
  • 토큰이 필요한경우 authInstance 호출
image 5. 요청할 페이지에서 함수 호출 image

📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant