summaryrefslogtreecommitdiff
path: root/dashboard/res/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/res/server.js')
-rw-r--r--dashboard/res/server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dashboard/res/server.js b/dashboard/res/server.js
index dbb0f31..3f07e2f 100644
--- a/dashboard/res/server.js
+++ b/dashboard/res/server.js
@@ -61,6 +61,10 @@ http.createServer(function(req, res) {
res.writeHead(200);
res.end();
sendCommand("off");
+ } else if (req.url == '/command/send') {
+ res.writeHead(200);
+ res.end();
+ sendCommand("send");
} else {
res.writeHead(404);
res.end();