Remove flask dependency

This commit is contained in:
Matthias
2020-12-29 17:23:28 +01:00
parent 68d148e72d
commit 346542e5cd
3 changed files with 2 additions and 7 deletions

View File

@@ -93,7 +93,6 @@ def token_login(form_data: HTTPBasicCredentials = Depends(HTTPBasic()),
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Basic"},
)

View File

@@ -101,7 +101,8 @@ class ApiServer(RPCHandler):
uvconfig = uvicorn.Config(self.app,
port=rest_port,
host=rest_ip,
access_log=True if verbosity != 'error' else False)
access_log=True if verbosity != 'error' else False,
)
try:
self._server = UvicornServer(uvconfig)
self._server.run_in_thread()