Updated host links to use store baseUri

This commit is contained in:
Joel Collins 2019-11-27 11:32:00 +00:00
parent 293e0665c6
commit 39d45bc749
7 changed files with 29 additions and 47 deletions

View file

@ -57,24 +57,20 @@ export default {
);
},
streamImgUri: function() {
return `http://${this.$store.state.host}:${
this.$store.state.port
}/api/v2/streams/mjpeg`;
return `${this.$store.getters.baseUri}/api/v2/streams/mjpeg`;
},
startPreviewUri: function() {
return `http://${this.$store.state.host}:${
this.$store.state.port
return `${
this.$store.getters.baseUri
}/api/v2/actions/camera/preview/start`;
},
stopPreviewUri: function() {
return `http://${this.$store.state.host}:${
this.$store.state.port
return `${
this.$store.getters.baseUri
}/api/v2/actions/camera/preview/stop`;
},
settingsUri: function() {
return `http://${this.$store.state.host}:${
this.$store.state.port
}/api/v2/settings`;
return `${this.$store.getters.baseUri}/api/v2/settings`;
}
},