mirror of https://github.com/nicolargo/glances
chore: restful_api - remove unused code
parent
2a5251ca2d
commit
6dc16e92ea
|
@ -174,9 +174,6 @@ class GlancesRestfulApi:
|
|||
self.stats.update()
|
||||
self.timer = Timer(self.args.cached_time)
|
||||
|
||||
def app(self):
|
||||
return self._app()
|
||||
|
||||
def authentication(self, creds: Annotated[HTTPBasicCredentials, Depends(security)]):
|
||||
"""Check if a username/password combination is valid."""
|
||||
if creds.username == self.args.username:
|
||||
|
|
Loading…
Reference in New Issue