chore: restful_api - remove unused code

pull/2938/head
RazCrimson 2024-09-08 14:30:25 +05:30
parent 2a5251ca2d
commit 6dc16e92ea
1 changed files with 0 additions and 3 deletions

View File

@ -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: