summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ogRest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 0e05ad8..ddedf16 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -88,6 +88,8 @@ class ogRest():
self.process_shellout(client)
elif ("hardware" in URI):
self.process_hardware(client)
+ elif ("run/schedule" in URI):
+ self.process_schedule(client)
else:
client.send(self.getResponse(ogResponses.BAD_REQUEST))
elif ("POST" in op):
@@ -157,3 +159,6 @@ class ogRest():
path = '/tmp/Chrd-' + client.ip
threading.Thread(target=ogThread.prochardware, args=(self.msgqueue, path,)).start()
client.send(self.getResponse(ogResponses.OK))
+
+ def process_schedule(self, client):
+ client.send(self.getResponse(ogResponses.OK))