mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add status API command
This commit is contained in:
parent
235d6f259e
commit
4743538de8
3 changed files with 51 additions and 0 deletions
|
@ -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'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue