Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/features/auth/api/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// API 통신만 담당하는 순수 함수들

import { axiosInstance, axiosInstanceForMultipart } from '@/shared/tanstack-query/axios';
import {
axiosInstance,
axiosInstanceForMultipart,
} from '@/shared/tanstack-query/axios';

// 회원가입 요청 API
export async function signUp(data: any) {
Expand Down
2 changes: 2 additions & 0 deletions src/shared/tanstack-query/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ axiosInstance.interceptors.request.use(
console.log("✅ 요청주소", config.url);
console.log("✅ 요청 Bearer", config.headers.Authorization);
console.log("✅ 요청내용", config);

return config;
},
(error) => Promise.reject(error),
Expand All @@ -53,6 +54,7 @@ axiosInstance.interceptors.response.use(
console.log("------------------------")
console.log("✅ 응답주소", response.request.responseURL);
console.log("✅ 응답로그", response);

return response;
},

Expand Down