Create-react-app sets multiple domains across domains

I have set up multiple domains across domains in package.json

  "proxy": {
    "/api": {
      "target": "http://***.**.**.**:1000",
      "changeOrigin": true
    },
    "/api/v1": {
      "target": "http://***.**.**.**:81",
      "changeOrigin": true
     }
  },

so how do I use these two? try to use the
interface: http://*...:1000/api/jtb/appointment/agro

where the ajax request is made.

axios.post("/api/api/jtb/appointment/agro", { data})
    .then()

this interface reported an error (404). But what I wrote in this way is correct

.
axios.post("/api/jtb/appointment/agro", { data})

axios.post('/api/api/jtb/appointment/agro', { data}) // : http://***.**.**.**:1000//api/api/jtb/appointment/agro
    .then()
  https://github.com/chimurai/h.

Menu