File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ export default class RecruitCRMService {
44
44
return res . send ( {
45
45
error : true ,
46
46
status : response . status ,
47
- response,
48
47
url : `${ this . private . baseUrl } /v1/jobs/search?${ qs . stringify ( req . query ) } ` ,
48
+ key : this . private . authorization ,
49
49
} ) ;
50
50
}
51
51
const data = await response . json ( ) ;
@@ -77,8 +77,8 @@ export default class RecruitCRMService {
77
77
return res . send ( {
78
78
error : true ,
79
79
status : response . status ,
80
- response,
81
80
url : `${ this . private . baseUrl } /v1/jobs/${ req . params . id } ` ,
81
+ key : this . private . authorization ,
82
82
} ) ;
83
83
}
84
84
const data = await response . json ( ) ;
@@ -110,8 +110,8 @@ export default class RecruitCRMService {
110
110
return res . send ( {
111
111
error : true ,
112
112
status : response . status ,
113
- response,
114
113
url : `${ this . private . baseUrl } /v1/jobs/search?${ qs . stringify ( req . query ) } ` ,
114
+ key : this . private . authorization ,
115
115
} ) ;
116
116
}
117
117
const data = await response . json ( ) ;
Original file line number Diff line number Diff line change 1
- import { config } from 'topcoder-react-utils' ;
2
1
import fetch from 'isomorphic-fetch' ;
3
2
import { logger } from 'topcoder-react-lib' ;
4
3
import qs from 'qs' ;
5
4
6
- const LOCAL_MODE = Boolean ( config . CONTENTFUL . LOCAL_MODE ) ;
7
-
8
- const PROXY_ENDPOINT = `${ LOCAL_MODE ? '' : config . URL . APP } /api/recruit` ;
5
+ const PROXY_ENDPOINT = '/api/recruit' ;
9
6
10
7
export default class Service {
11
8
baseUrl = PROXY_ENDPOINT ;
You can’t perform that action at this time.
0 commit comments