diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index b38a543..3bbdac9 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 + "/api/plugin/mystromswitch", type: "POST", dataType: "json", data: JSON.stringify({ diff --git a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 index 04b6b93..8368f96 100644 --- a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 +++ b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 @@ -1,5 +1,4 @@