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