add basic clock functions (timer, alarm, date, current time)
This commit is contained in:
1 parent
780c9592ed
commit
07b0e2ff7e
28 files changed
+979
-8
No files matched your search
@@ -233,6 +233,15 @@ class DashboardHandler(BaseHTTPRequestHandler):
|
||||
if path == "/api/approvals":
|
||||
self._send(200, {"approvals": self.scheduler.pending_approvals()})
|
||||
return
|
||||
if path == "/api/timers":
|
||||
self._send(
|
||||
200,
|
||||
{
|
||||
"pending": self.scheduler.timers.pending(),
|
||||
"fired": self.scheduler.timers.fired(),
|
||||
},
|
||||
)
|
||||
return
|
||||
self._send_error(404, "no such endpoint")
|
||||
|
||||
def do_POST(self):
|
||||
|
||||
Reference in new issue
Block a user