| #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"]) | |
| async def ingest_file_route(file: UploadFile = File(...)): | |
| result = await ingest_file_controller(file) | |
| return result | |