diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index 3bbdac9..ef37ed7 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 + "/api/plugin/mystromswitch", + url: API_BASEURL + "/plugin/mystromswitch", type: "POST", dataType: "json", data: JSON.stringify({