Guest User

Untitled

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