Skip to content

Conversation

@zelkovaria
Copy link
Member

@zelkovaria zelkovaria commented Feb 18, 2025

이슈번호

요약(개요)

  • axios 사용을 위한 환경을 설정합니다

작업 내용

  • endPoint 설정
  • axios 설정
  • 임시 api 함수 추가

집중해서 리뷰해야 하는 부분

  • endPoint는 prefix 구별을 위해 users, guilds로 나눴어요

기타 전달 사항 및 참고 자료(선택)

  • env 추가 잊지말아주세용!
  • api 함수는 테스트시 임시로 만들었던지라 구현하면서 수정 예정이에요!
  • 요청에 맞게 publicAxios, tokenAxios 나누어서 사용하시면 됩니다!
  • 사용시에는 endPoint.guilds.GET_GUILDS와 같이 사용하시면 돼요! 예시 첨부해놓을게요
export const getGuilds = async () => {
  const { data } = await tokenAxios.get<GetGuildsResponse>(endPoint.guilds.GET_GUILDS);
  return data;
};

Copy link
Collaborator

@chysis chysis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨어요 👍

@zelkovaria zelkovaria merged commit 03a9a45 into main Feb 18, 2025
3 checks passed
onegood07 pushed a commit that referenced this pull request Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] setting: axios 세팅

4 participants