From f06a94a051d997209da6ec387deb6a7e676b859c Mon Sep 17 00:00:00 2001 From: sujanadh Date: Fri, 1 Dec 2023 13:35:18 +0545 Subject: [PATCH 1/2] fix: changed post request to get --- src/backend/app/projects/project_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index bde0248aa6..ad8152a30f 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -1193,7 +1193,7 @@ async def get_task_status( from ..static import data_path -@router.post("/templates") +@router.get("/templates/") async def get_template_file( file_type: str = Query( ..., enum=["data_extracts", "form"], description="Choose file type" From 0eab376ab66722b35bfebc439f8dbab1f9b5636b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Dec 2023 08:02:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/main.py b/src/backend/app/main.py index e50e3d070c..b45e5640ed 100644 --- a/src/backend/app/main.py +++ b/src/backend/app/main.py @@ -25,7 +25,7 @@ from fastapi import FastAPI, Request from fastapi.exceptions import RequestValidationError from fastapi.middleware.cors import CORSMiddleware -from fastapi.responses import FileResponse, HTMLResponse, JSONResponse, RedirectResponse +from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse from loguru import logger as log from osm_fieldwork.xlsforms import xlsforms_path