diff options
Diffstat (limited to 'gui/api')
-rwxr-xr-x | gui/api/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/api/__init__.py b/gui/api/__init__.py index 959dedc..6c04a64 100755 --- a/gui/api/__init__.py +++ b/gui/api/__init__.py @@ -71,3 +71,8 @@ class API: cherrypy.response.headers["Content-Type"] = "text/plain" cherrypy.response.status = 400 return "POST only" + + @cherrypy.expose + def dpd_status(self, **kwargs): + cherrypy.response.headers["Content-Type"] = "application/json" + return json.dumps(self.dpd.status()).encode() |