modif api url

This commit is contained in:
vincent 2019-04-24 16:15:50 +02:00
parent 8959fbf2c3
commit a9b8773c72
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api/v1/chaine': {
'chainetv/api/v1/chaine': {
target: 'http://localhost:5000',
changOrigin: true
}

View File

@ -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;