Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import Vlow from 'vlow';
import JsonRequest from '../Utils/JsonRequest.jsx';
class BaseStore extends Vlow.Store {
fetch(url) {
return new JsonRequest('GET', url);
}
post(url, data) {
return new JsonRequest('POST', url, data);
}
postraw(url, raw) {
return new JsonRequest('POST', url, raw, true);
}
}
export default BaseStore;