8 lines
204 B
JavaScript
8 lines
204 B
JavaScript
|
export const API_REQUEST = '[app] API Request';
|
||
|
|
||
|
export const apiRequest = (method, url, body, onSuccess, onError) => ({
|
||
|
type: API_REQUEST,
|
||
|
payload: body,
|
||
|
meta: { method, url, onSuccess, onError }
|
||
|
});
|