From 6dfa4439744aeff6ad38ceda7dbad0c2b53dbde0 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Wed, 10 Sep 2025 13:30:29 +0200 Subject: [PATCH] open business apis --- backend/routers/business.py | 2 +- backend/routers/fileStorage.py | 2 +- backend/routers/mzansi_directory.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/routers/business.py b/backend/routers/business.py index 797fb4b4..e1384d29 100644 --- a/backend/routers/business.py +++ b/backend/routers/business.py @@ -176,7 +176,7 @@ async def read_all_businesses(search: str, type: str, session: SessionContainer # Get List of all files @router.get("/business/business_id/{business_id}", tags=["MIH Business"]) -async def read_business_by_business_id(business_id: str, session: SessionContainer = Depends(verify_session())): #, session: SessionContainer = Depends(verify_session()) +async def read_business_by_business_id(business_id: str): #, session: SessionContainer = Depends(verify_session()) dbEngine = mih_database.mihDbConnections.dbAllConnect() dbSession = Session(dbEngine) try: diff --git a/backend/routers/fileStorage.py b/backend/routers/fileStorage.py index a95ba825..eeea3e82 100644 --- a/backend/routers/fileStorage.py +++ b/backend/routers/fileStorage.py @@ -108,7 +108,7 @@ class claimStatementUploud(BaseModel): sig_path: str @router.get("/minio/pull/file/{env}/{app_id}/{folder}/{file_name}", tags=["Minio"]) -async def pull_File_from_user(app_id: str, folder: str, file_name: str, env: str, session: SessionContainer = Depends(verify_session())): #, session: SessionContainer = Depends(verify_session()) +async def pull_File_from_user(app_id: str, folder: str, file_name: str, env: str): #, session: SessionContainer = Depends(verify_session()) path = app_id + "/" + folder + "/" + file_name try: # print(f"env: {env}") diff --git a/backend/routers/mzansi_directory.py b/backend/routers/mzansi_directory.py index 6da5ffc2..cdc58bae 100644 --- a/backend/routers/mzansi_directory.py +++ b/backend/routers/mzansi_directory.py @@ -96,7 +96,7 @@ async def read_all_ratings_by_business_id(app_id: str,business_id: str, session: dbSession.close() @router.get("/mzansi-directory/business-ratings/all/{business_id}", tags=["Mzansi Directory"]) -async def read_all_ratings_by_business_id(business_id: str, session: SessionContainer = Depends(verify_session())): # , session: SessionContainer = Depends(verify_session()) +async def read_all_ratings_by_business_id(business_id: str): # , session: SessionContainer = Depends(verify_session()) dbEngine = mih_database.mihDbConnections.dbAllConnect() dbSession = Session(dbEngine) try: