From b71c7edc0105f6b328cca408ec438f5976c1d6cf Mon Sep 17 00:00:00 2001 From: sureshhewabi Date: Sat, 30 Sep 2023 09:32:58 +0100 Subject: [PATCH] Post Method --- app/routes/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/routes/main.py b/app/routes/main.py index e151d48..1d7cd65 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -8,9 +8,8 @@ main_router = APIRouter() -@main_router.get("/parse/{px_accession}", tags=["Main"]) -async def parse(px_accession: str, temp_dir: str | None = None, dont_delete: bool = False, - session: Session = Depends(get_session)): +@main_router.post("/parse/{px_accession}", tags=["Main"]) +async def parse(px_accession: str, temp_dir: str | None = None, dont_delete: bool = False): if temp_dir: temp_dir = os.path.expanduser(temp_dir) else: