Files
hoppscotch/functions/strategies/ProxyStrategy.js
2020-01-15 06:33:04 +05:30

14 lines
296 B
JavaScript

import axios from "axios";
const proxyStrategy = async (req, store) => {
const { data } = await axios.post(
store.state.postwoman.settings.PROXY_URL ||
"https://postwoman.apollotv.xyz/",
req
);
window.$nuxt.$loading.finish();
return data;
};
export default proxyStrategy;