Files
hoppscotch/functions/strategies/ProxyStrategy.js
2020-01-13 23:46:31 -05:00

14 lines
269 B
JavaScript

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