File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function getAllComputers(mark = '') {
25
25
}}` ;
26
26
27
27
return dispatch => {
28
- request . get ( '/api/v1 ' , { query} ) . then ( ( { data} ) => {
28
+ request . get ( '/' , { query} ) . then ( ( { data} ) => {
29
29
dispatch ( { type : types . GET_ALL_COMPUTERS , computers : data . computers } ) ;
30
30
} ) ;
31
31
} ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function getAllPhones(mark = '') {
21
21
}}` ;
22
22
23
23
return dispatch => {
24
- request . get ( '/api/v1 ' , { query} ) . then ( ( { data} ) => {
24
+ request . get ( '/' , { query} ) . then ( ( { data} ) => {
25
25
dispatch ( { type : types . GET_ALL_PHONES , phones : data . phones } ) ;
26
26
} ) ;
27
27
} ;
Original file line number Diff line number Diff line change 2
2
3
3
import request from 'superagent' ;
4
4
5
- const API_URL = '' ;
5
+ const API_URL = '/api/v1 ' ;
6
6
const HEADERS = { Accept : 'application/json' } ;
7
7
const setPrefix = ( prefix ) => {
8
8
return ( req ) => {
You can’t perform that action at this time.
0 commit comments