File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,30 @@ const router = '/volunteers';
55
66// 봉사 활동 신청
77export const applicationVolunteer = async ( volunteerId : string ) => {
8- await instance . post ( `${ router } /application/${ volunteerId } ` ) ;
8+ const url = `${ router } /application/${ volunteerId } ` ;
9+ console . log ( `Requesting POST: ${ url } ` ) ;
10+ await instance . post ( url ) ;
911}
1012
1113// 봉사 활동 신청 취소
1214export const deleteApplicationVolunteer = async ( volunteerId : string ) => {
13- await instance . delete ( `${ router } /cancellation/${ volunteerId } ` )
15+ const url = `${ router } /cancellation/${ volunteerId } ` ;
16+ console . log ( `Requesting DELETE: ${ url } ` ) ;
17+ await instance . delete ( url )
1418}
1519
1620// 봉사 활동 조회
1721export const getVolunteer = async ( ) => {
18- const { data} = await instance . get < getVolunteerResponse > ( `${ router } ` ) ;
22+ const url = `${ router } ` ;
23+ console . log ( `Requesting GET: ${ url } ` ) ;
24+ const { data} = await instance . get < getVolunteerResponse > ( url ) ;
1925 return data ;
2026}
2127
2228// 내 봉사 신청 내역 조회
2329export const getMyVolunteers = async ( ) => {
24- const { data} = await instance . get < getMyVolunteersResponse > ( `${ router } /my/application` )
30+ const url = `${ router } /my/application` ;
31+ console . log ( `Requesting GET: ${ url } ` ) ;
32+ const { data} = await instance . get < getMyVolunteersResponse > ( url )
2533 return data ;
2634}
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import App from './App';
44import reportWebVitals from './reportWebVitals' ;
55import { registerSetAuthToken } from './utils/setAuthToken' ;
66
7+ console . log ( 'process.env.REACT_APP_BASE_URL:' , process . env . REACT_APP_BASE_URL ) ;
8+
79registerSetAuthToken ( ) ;
810
911const root = ReactDOM . createRoot (
You can’t perform that action at this time.
0 commit comments