Guest User

Untitled

a guest
Jun 24th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. export const SOME_CONST = {
  2. // ... some data
  3. };
  4.  
  5. export const get = url => {
  6. // ... using SOME_CONST
  7. return ; // some promise
  8. };
  9.  
  10. export const post = (url, data) => {
  11. // ... using ApiProxy.SOME_CONST
  12. return ; // some promise
  13. };
  14.  
  15. export const createMethod = (method, prepareUrl, prepareData, readResult) => {
  16. return ; // some function based on just post or get functions
  17. };
Add Comment
Please, Sign In to add comment