diff --git a/client/config/index.js b/client/config/index.js index 58892b2..1a581aa 100644 --- a/client/config/index.js +++ b/client/config/index.js @@ -11,7 +11,7 @@ module.exports = { assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { - '/api/v1/chaine': { + 'chainetv/api/v1/chaine': { target: 'http://localhost:5000', changOrigin: true } diff --git a/client/src/components/chainetv.vue b/client/src/components/chainetv.vue index 2d1eb4f..8adc2f4 100644 --- a/client/src/components/chainetv.vue +++ b/client/src/components/chainetv.vue @@ -32,7 +32,7 @@ export default { }, methods: { getchaine(num) { - let path = '/api/v1/chaine/'; + let path = 'chainetv/api/v1/chaine/'; path += num; axios.get(path) .then((res) => { @@ -49,7 +49,7 @@ export default { }, parsechaine() { - const path = '/api/v1/chaine/'; + const path = 'chainetv/api/v1/chaine/'; axios.put(path) .then((res) => { this.message = res.data;