Files
hoppscotch/functions/strategies/ProxyStrategy.js
2020-01-14 11:49:43 -05:00

14 lines
260 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
);
return data;
}
export default proxyStrategy;