mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-16 12:58:13 -04:00
Remove unused method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user