Remove unused method

This commit is contained in:
Nicolargo 2015-01-11 14:51:15 +01:00 committed by Alessio Sergi
parent 89eee581db
commit af7eeb6d26

View File

@ -120,12 +120,6 @@ class GlancesBottle(object):
# Return the static file
return static_file('favicon.ico', root=self.STATIC_PATH)
def enable_cors(self):
"""Enable CORS"""
response.headers['Access-Control-Allow-Origin'] = '*'
response.headers['Access-Control-Allow-Methods'] = 'PUT, GET, POST, DELETE, OPTIONS'
response.headers['Access-Control-Allow-Headers'] = 'Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token'
def _api_plugins(self):
"""
Glances API RESTFul implementation