This commit is contained in:
parent
6c93bfda1d
commit
a3f2ed7365
|
@ -89,11 +89,11 @@ class ApiClient {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
get = (path: string, data?: Object, options?: Object) => {
|
get = (path: string, data: ?Object, options?: Object) => {
|
||||||
return this.fetch(path, 'GET', data, options);
|
return this.fetch(path, 'GET', data, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
post = (path: string, data?: Object, options?: Object) => {
|
post = (path: string, data: ?Object, options?: Object) => {
|
||||||
return this.fetch(path, 'POST', data, options);
|
return this.fetch(path, 'POST', data, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue