Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
upliveapp committed Mar 28, 2019
1 parent 3a986f4 commit 4b95698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jswitcher-ui/src/main/resources/templates/keys.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
methods: {
change: function (key) {
var url = 'http://localhost:8080/switcher/key/' + (key.open ? 'off' : 'on') + '/' + key.host + '/' + key.port + '/' + key.key;
var url = '/switcher/key/' + (key.open ? 'off' : 'on') + '/' + key.host + '/' + key.port + '/' + key.key;
axios.get(url).then(
(response) => {
if (response.status !== 200) {
Expand All @@ -68,7 +68,7 @@
});
},
persistence: function (key) {
var url = 'http://localhost:8080/switcher/key/set/' + key.host + '/' + key.port + '/' + key.key + '/' + key.open;
var url = '/switcher/key/set/' + key.host + '/' + key.port + '/' + key.key + '/' + key.open;
axios.get(url).then(
(response) => {
if (response.status !== 200) {
Expand All @@ -79,7 +79,7 @@
}
},
mounted() {
axios.get('http://localhost:8080/switcher/keys').then(
axios.get('/switcher/keys').then(
(response) => {
if (response.status !== 200) {
console.log(response);
Expand Down

0 comments on commit 4b95698

Please sign in to comment.