From 0cab5c3bc6fe3606643e4e5ef78d15a4602d8d71 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Sun, 24 Nov 2019 15:38:12 +0100 Subject: [PATCH] #8 Relais ein / ausschalten von Ocotprint aus --- octoprint_mystromswitch/static/js/mystromswitch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({