@@ -217,7 +217,7 @@ export const scheduleSession = (
217217 options ?: AxiosRequestConfig ,
218218) : Promise < AxiosResponse < ScheduleSessionResponse > > => {
219219 return axios . default . put (
220- `http://localhost:8310 /api/mentorship/scheduleSession` ,
220+ `/api/mentorship/scheduleSession` ,
221221 scheduleSessionRequest ,
222222 options ,
223223 ) ;
@@ -297,7 +297,7 @@ export const rejectApplication = (
297297 options ?: AxiosRequestConfig ,
298298) : Promise < AxiosResponse < RejectApplicationResponse > > => {
299299 return axios . default . put (
300- `http://localhost:8310 /api/mentorship/rejectApplication/${ id } ` ,
300+ `/api/mentorship/rejectApplication/${ id } ` ,
301301 undefined ,
302302 options ,
303303 ) ;
@@ -377,7 +377,7 @@ export const acceptApplication = (
377377 options ?: AxiosRequestConfig ,
378378) : Promise < AxiosResponse < AcceptApplicationResponse > > => {
379379 return axios . default . put (
380- `http://localhost:8310 /api/mentorship/acceptApplication/${ id } ` ,
380+ `/api/mentorship/acceptApplication/${ id } ` ,
381381 undefined ,
382382 options ,
383383 ) ;
@@ -457,7 +457,7 @@ export const listMentorProfiles = (
457457 options ?: AxiosRequestConfig ,
458458) : Promise < AxiosResponse < ListMentorProfileResponse > > => {
459459 return axios . default . post (
460- `http://localhost:8310 /api/mentorship/listMentorProfiles` ,
460+ `/api/mentorship/listMentorProfiles` ,
461461 listMentorProfileRequest ,
462462 options ,
463463 ) ;
@@ -537,7 +537,7 @@ export const createSkill = (
537537 options ?: AxiosRequestConfig ,
538538) : Promise < AxiosResponse < CreateSkillResponse > > => {
539539 return axios . default . post (
540- `http://localhost:8310 /api/mentorship/createSkill` ,
540+ `/api/mentorship/createSkill` ,
541541 createSkillRequest ,
542542 options ,
543543 ) ;
@@ -617,7 +617,7 @@ export const createMentorProfile = (
617617 options ?: AxiosRequestConfig ,
618618) : Promise < AxiosResponse < CreateMentorProfileResponse > > => {
619619 return axios . default . post (
620- `http://localhost:8310 /api/mentorship/createMentorProfile` ,
620+ `/api/mentorship/createMentorProfile` ,
621621 createMentorProfileRequest ,
622622 options ,
623623 ) ;
@@ -697,7 +697,7 @@ export const createCategory = (
697697 options ?: AxiosRequestConfig ,
698698) : Promise < AxiosResponse < CreateCategoryResponse > > => {
699699 return axios . default . post (
700- `http://localhost:8310 /api/mentorship/createCategory` ,
700+ `/api/mentorship/createCategory` ,
701701 createCategoryRequest ,
702702 options ,
703703 ) ;
@@ -777,7 +777,7 @@ export const createApplication = (
777777 options ?: AxiosRequestConfig ,
778778) : Promise < AxiosResponse < CreateApplicationResponse > > => {
779779 return axios . default . post (
780- `http://localhost:8310 /api/mentorship/createApplication` ,
780+ `/api/mentorship/createApplication` ,
781781 createApplicationRequest ,
782782 options ,
783783 ) ;
@@ -857,7 +857,7 @@ export const updateMentorProfile = (
857857 options ?: AxiosRequestConfig ,
858858) : Promise < AxiosResponse < UpdateMentorProfileResponse > > => {
859859 return axios . default . patch (
860- `http://localhost:8310 /api/mentorship/updateMentorProfile` ,
860+ `/api/mentorship/updateMentorProfile` ,
861861 updateMentorProfileRequest ,
862862 options ,
863863 ) ;
@@ -935,14 +935,11 @@ export const useUpdateMentorProfile = <
935935export const listSkills = (
936936 options ?: AxiosRequestConfig ,
937937) : Promise < AxiosResponse < ListSkillResponse > > => {
938- return axios . default . get (
939- `http://localhost:8310/api/mentorship/listSkills` ,
940- options ,
941- ) ;
938+ return axios . default . get ( `/api/mentorship/listSkills` , options ) ;
942939} ;
943940
944941export const getListSkillsQueryKey = ( ) => {
945- return [ `http://localhost:8310 /api/mentorship/listSkills` ] as const ;
942+ return [ `/api/mentorship/listSkills` ] as const ;
946943} ;
947944
948945export const getListSkillsQueryOptions = <
@@ -1062,14 +1059,11 @@ export function useListSkills<
10621059export const listCategories = (
10631060 options ?: AxiosRequestConfig ,
10641061) : Promise < AxiosResponse < ListCategoryResponse > > => {
1065- return axios . default . get (
1066- `http://localhost:8310/api/mentorship/listCategories` ,
1067- options ,
1068- ) ;
1062+ return axios . default . get ( `/api/mentorship/listCategories` , options ) ;
10691063} ;
10701064
10711065export const getListCategoriesQueryKey = ( ) => {
1072- return [ `http://localhost:8310 /api/mentorship/listCategories` ] as const ;
1066+ return [ `/api/mentorship/listCategories` ] as const ;
10731067} ;
10741068
10751069export const getListCategoriesQueryOptions = <
@@ -1190,20 +1184,17 @@ export const listApplications = (
11901184 params ?: ListApplicationsParams ,
11911185 options ?: AxiosRequestConfig ,
11921186) : Promise < AxiosResponse < ListApplicationResponse > > => {
1193- return axios . default . get (
1194- `http://localhost:8310/api/mentorship/listApplications` ,
1195- {
1196- ...options ,
1197- params : { ...params , ...options ?. params } ,
1198- } ,
1199- ) ;
1187+ return axios . default . get ( `/api/mentorship/listApplications` , {
1188+ ...options ,
1189+ params : { ...params , ...options ?. params } ,
1190+ } ) ;
12001191} ;
12011192
12021193export const getListApplicationsQueryKey = (
12031194 params ?: ListApplicationsParams ,
12041195) => {
12051196 return [
1206- `http://localhost:8310 /api/mentorship/listApplications` ,
1197+ `/api/mentorship/listApplications` ,
12071198 ...( params ? [ params ] : [ ] ) ,
12081199 ] as const ;
12091200} ;
@@ -1354,18 +1345,15 @@ export const getMentorProfile = (
13541345 params : GetMentorProfileParams ,
13551346 options ?: AxiosRequestConfig ,
13561347) : Promise < AxiosResponse < GetMentorProfileResponse > > => {
1357- return axios . default . get (
1358- `http://localhost:8310/api/mentorship/getMentorProfile` ,
1359- {
1360- ...options ,
1361- params : { ...params , ...options ?. params } ,
1362- } ,
1363- ) ;
1348+ return axios . default . get ( `/api/mentorship/getMentorProfile` , {
1349+ ...options ,
1350+ params : { ...params , ...options ?. params } ,
1351+ } ) ;
13641352} ;
13651353
13661354export const getGetMentorProfileQueryKey = ( params : GetMentorProfileParams ) => {
13671355 return [
1368- `http://localhost:8310 /api/mentorship/getMentorProfile` ,
1356+ `/api/mentorship/getMentorProfile` ,
13691357 ...( params ? [ params ] : [ ] ) ,
13701358 ] as const ;
13711359} ;
@@ -1516,14 +1504,11 @@ export const getApplication = (
15161504 id : string ,
15171505 options ?: AxiosRequestConfig ,
15181506) : Promise < AxiosResponse < GetApplicationResponse > > => {
1519- return axios . default . get (
1520- `http://localhost:8310/api/mentorship/application/${ id } ` ,
1521- options ,
1522- ) ;
1507+ return axios . default . get ( `/api/mentorship/application/${ id } ` , options ) ;
15231508} ;
15241509
15251510export const getGetApplicationQueryKey = ( id : string ) => {
1526- return [ `http://localhost:8310 /api/mentorship/application/${ id } ` ] as const ;
1511+ return [ `/api/mentorship/application/${ id } ` ] as const ;
15271512} ;
15281513
15291514export const getGetApplicationQueryOptions = <
@@ -1656,10 +1641,10 @@ export const deleteMentorProfile = (
16561641 deleteMentorProfileRequest : DeleteMentorProfileRequest ,
16571642 options ?: AxiosRequestConfig ,
16581643) : Promise < AxiosResponse < DeleteMentorProfileResponse > > => {
1659- return axios . default . delete (
1660- `http://localhost:8310/api/mentorship/deleteMentorProfile` ,
1661- { data : deleteMentorProfileRequest , ...options } ,
1662- ) ;
1644+ return axios . default . delete ( `/api/mentorship/deleteMentorProfile` , {
1645+ data : deleteMentorProfileRequest ,
1646+ ...options ,
1647+ } ) ;
16631648} ;
16641649
16651650export const getDeleteMentorProfileMutationOptions = <
0 commit comments