Add status API command

This commit is contained in:
JonnyWong16 2019-05-11 09:02:18 -07:00
parent 235d6f259e
commit 4743538de8
3 changed files with 51 additions and 0 deletions

View file

@ -5860,3 +5860,26 @@ class WebInterface(object):
@requireAuth()
def support(self, query='', **kwargs):
return serve_template(templatename="support.html", title="Support")
@cherrypy.expose
@cherrypy.tools.json_out()
@addtoapi()
def status(self, *args, **kwargs):
""" Get the current status of Tautulli.
```
Required parameters:
None
Optional parameters:
None
Returns:
json:
{"result": "success",
"message": "Ok",
}
```
"""
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"
return {'result': 'success', 'message': 'Ok'}