Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const SOME_CONST = {
- // ... some data
- };
- export const get = url => {
- // ... using SOME_CONST
- return ; // some promise
- };
- export const post = (url, data) => {
- // ... using ApiProxy.SOME_CONST
- return ; // some promise
- };
- export const createMethod = (method, prepareUrl, prepareData, readResult) => {
- return ; // some function based on just post or get functions
- };
Add Comment
Please, Sign In to add comment