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()

View File

@ -27,11 +27,6 @@ python-rapidjson==1.0
# Notify systemd
sdnotify==0.3.2
# Api server
flask==1.1.2
flask-jwt-extended==3.25.0
flask-cors==3.0.9
# API Server
fastapi==0.63.0
uvicorn==0.13.2