antd-admin
antd-admin copied to clipboard
how to use other API ?
there're two type api in antd-admin:
- based on hostname + apiPrefix, in src/services/api.js
- like queryWeather (defined in src/services/index.js), with proxy (defined in .umirc.js)
there're two type api in antd-admin:
- based on hostname + apiPrefix, in src/services/api.js
- like queryWeather (defined in src/services/index.js), with proxy (defined in .umirc.js)
Where can i change it? i have api like : https://services.com/api/{routers} I already change proxy in .umirc but nothing change. application just run localhost:7000/api
Consider Nginx?
How about graphql? We have a single endpoint like /graphql and we make a POST request to operate the data(CRUD)
just use axios or utils/request directly @KirillSBarsukov
I have the same question. How can I change the proxy to be the port that is running the backend? I add proxy in package.json but nothing change
proxy in package.json is only work in dev @jl63