Remove flask dependency
This commit is contained in:
parent
68d148e72d
commit
346542e5cd
@ -93,7 +93,6 @@ def token_login(form_data: HTTPBasicCredentials = Depends(HTTPBasic()),
|
|||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||||
detail="Incorrect username or password",
|
detail="Incorrect username or password",
|
||||||
headers={"WWW-Authenticate": "Basic"},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,7 +101,8 @@ class ApiServer(RPCHandler):
|
|||||||
uvconfig = uvicorn.Config(self.app,
|
uvconfig = uvicorn.Config(self.app,
|
||||||
port=rest_port,
|
port=rest_port,
|
||||||
host=rest_ip,
|
host=rest_ip,
|
||||||
access_log=True if verbosity != 'error' else False)
|
access_log=True if verbosity != 'error' else False,
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
self._server = UvicornServer(uvconfig)
|
self._server = UvicornServer(uvconfig)
|
||||||
self._server.run_in_thread()
|
self._server.run_in_thread()
|
||||||
|
@ -27,11 +27,6 @@ python-rapidjson==1.0
|
|||||||
# Notify systemd
|
# Notify systemd
|
||||||
sdnotify==0.3.2
|
sdnotify==0.3.2
|
||||||
|
|
||||||
# Api server
|
|
||||||
flask==1.1.2
|
|
||||||
flask-jwt-extended==3.25.0
|
|
||||||
flask-cors==3.0.9
|
|
||||||
|
|
||||||
# API Server
|
# API Server
|
||||||
fastapi==0.63.0
|
fastapi==0.63.0
|
||||||
uvicorn==0.13.2
|
uvicorn==0.13.2
|
||||||
|
Loading…
Reference in New Issue
Block a user