mirror of https://github.com/nicolargo/glances
Remove unused method
parent
8a51ba58aa
commit
4107fcf3fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue