Remove flask dependency
This commit is contained in:
@@ -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"},
|
||||
)
|
||||
|
||||
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user