#ingestion route #recieve file from frontend and call the parsing controller from fastapi import APIRouter, UploadFile, File from app.controllers import ingest_file_controller router = APIRouter(prefix = "/ingest", tags = ["ingest"]) @router.post("") async def ingest_file_route(file: UploadFile = File(...)): result = await ingest_file_controller(file) return result