mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Remove API v1
This commit is contained in:
parent
38ccd26b96
commit
8925a0dc78
2 changed files with 2 additions and 513 deletions
|
@ -4339,9 +4339,8 @@ class WebInterface(object):
|
|||
if args and 'v2' in args[0]:
|
||||
return API2()._api_run(**kwargs)
|
||||
else:
|
||||
a = Api()
|
||||
a.checkParams(*args, **kwargs)
|
||||
return a.fetchData()
|
||||
return json.dumps(API2()._api_responds(result_type='error',
|
||||
msg='Please use the /api/v2 endpoint.'))
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue