Remove API v1

This commit is contained in:
JonnyWong16 2016-09-30 20:03:58 -07:00 committed by JonnyWong16
parent 38ccd26b96
commit 8925a0dc78
2 changed files with 2 additions and 513 deletions

View file

@ -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()