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 diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 8f33360db0..fc157fbb33 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -1185,7 +1185,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"