From 6c70c3c1594a5748317f03bfff309d5a04c5b6af Mon Sep 17 00:00:00 2001 From: cardosofede Date: Tue, 26 Nov 2024 16:07:57 -0300 Subject: [PATCH] (feat) add accounts router back --- main.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b5ce723..f3bf194 100644 --- a/main.py +++ b/main.py @@ -6,8 +6,16 @@ from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import HTTPBasic, HTTPBasicCredentials -from routers import manage_accounts, manage_backtesting, manage_broker_messages, manage_docker, manage_files, \ - manage_market_data, manage_databases, manage_performance +from routers import ( + manage_accounts, + manage_backtesting, + manage_broker_messages, + manage_databases, + manage_docker, + manage_files, + manage_market_data, + manage_performance, +) load_dotenv() security = HTTPBasic() @@ -47,3 +55,4 @@ def auth_user( app.include_router(manage_backtesting.router, dependencies=[Depends(auth_user)]) app.include_router(manage_databases.router, dependencies=[Depends(auth_user)]) app.include_router(manage_performance.router, dependencies=[Depends(auth_user)]) +app.include_router(manage_accounts.router, dependencies=[Depends(auth_user)])