1- import { instance } from " ../axios" ;
2- import { getMyVolunteersResponse , getVolunteerResponse } from " ./response" ;
1+ import { instance } from ' ../axios' ;
2+ import { getMyVolunteersResponse , getVolunteerResponse } from ' ./response' ;
33
44const router = '/volunteers' ;
55
66// 봉사 활동 신청
77export const applicationVolunteer = async ( volunteerId : string ) => {
8- const url = `${ router } /application/${ volunteerId } ` ;
9- console . log ( `Requesting POST: ${ url } ` ) ;
10- await instance . post ( url ) ;
11- }
8+ const url = `${ router } /application/${ volunteerId } ` ;
9+ await instance . post ( url ) ;
10+ } ;
1211
1312// 봉사 활동 신청 취소
1413export const deleteApplicationVolunteer = async ( volunteerId : string ) => {
15- const url = `${ router } /cancellation/${ volunteerId } ` ;
16- console . log ( `Requesting DELETE: ${ url } ` ) ;
17- await instance . delete ( url )
18- }
14+ const url = `${ router } /cancellation/${ volunteerId } ` ;
15+ await instance . delete ( url ) ;
16+ } ;
1917
2018// 봉사 활동 조회
2119export const getVolunteer = async ( ) => {
22- const url = `${ router } ` ;
23- console . log ( `Requesting GET: ${ url } ` ) ;
24- const { data} = await instance . get < getVolunteerResponse > ( url ) ;
25- return data ;
26- }
20+ const url = `${ router } ` ;
21+ const { data } = await instance . get < getVolunteerResponse > ( url ) ;
22+ return data ;
23+ } ;
2724
2825// 내 봉사 신청 내역 조회
2926export const getMyVolunteers = async ( ) => {
30- const url = `${ router } /my/application` ;
31- console . log ( `Requesting GET: ${ url } ` ) ;
32- const { data} = await instance . get < getMyVolunteersResponse > ( url )
33- return data ;
34- }
27+ const url = `${ router } /my/application` ;
28+ const { data } = await instance . get < getMyVolunteersResponse > ( url ) ;
29+ return data ;
30+ } ;
0 commit comments