Refactor network and ProxyStrategy code
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import axios from "axios";
|
||||
|
||||
const proxyStrategy = async (req, store) => {
|
||||
const proxyRes = await axios.post(
|
||||
const { data } = await axios.post(
|
||||
store.state.postwoman.settings.PROXY_URL ||
|
||||
"https://postwoman.apollotv.xyz/",
|
||||
req
|
||||
);
|
||||
|
||||
return proxyRes.data;
|
||||
return data;
|
||||
}
|
||||
|
||||
export default proxyStrategy;
|
||||
|
||||
Reference in New Issue
Block a user