diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index ef37ed7..b38a543 100644 --- a/octoprint_mystromswitch/static/js/mystromswitch.js +++ b/octoprint_mystromswitch/static/js/mystromswitch.js @@ -11,7 +11,7 @@ $(function() { self.onToggleRelayEvent = function(){ $.ajax({ - url: API_BASEURL + "/plugin/mystromswitch", + url: API_BASEURL + "plugin/mystromswitch", type: "POST", dataType: "json", data: JSON.stringify({