From 6109bdceec3e277cd7463a3ced96134c56f4cfac Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 24 Apr 2019 16:26:14 +0200 Subject: [PATCH] remove chaine tv url --- client/config/index.js | 6 +++--- client/src/components/chainetv.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/config/index.js b/client/config/index.js index 1a581aa..151aa87 100644 --- a/client/config/index.js +++ b/client/config/index.js @@ -11,7 +11,7 @@ module.exports = { assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { - 'chainetv/api/v1/chaine': { + '/api/v1/chaine': { target: 'http://localhost:5000', changOrigin: true } @@ -50,10 +50,10 @@ module.exports = { build: { // Template for index.html - index: path.resolve(__dirname, '../../backend/dist/index.html'), + index: path.resolve(__dirname, '../../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../../backend/dist'), + assetsRoot: path.resolve(__dirname, '../../dist'), assetsSubDirectory: 'static', assetsPublicPath: '/', diff --git a/client/src/components/chainetv.vue b/client/src/components/chainetv.vue index 8adc2f4..2d1eb4f 100644 --- a/client/src/components/chainetv.vue +++ b/client/src/components/chainetv.vue @@ -32,7 +32,7 @@ export default { }, methods: { getchaine(num) { - let path = 'chainetv/api/v1/chaine/'; + let path = '/api/v1/chaine/'; path += num; axios.get(path) .then((res) => { @@ -49,7 +49,7 @@ export default { }, parsechaine() { - const path = 'chainetv/api/v1/chaine/'; + const path = '/api/v1/chaine/'; axios.put(path) .then((res) => { this.message = res.data;