from fastapi import APIRouter, File, HTTPException, UploadFile from src.modules.uploadDocument.controllers.file_upload_controller import \ FileUploadController router = APIRouter() controller = FileUploadController() @router.post( "/document", ) async def upload_file(file: UploadFile = File(...)): return await controller.handle_file_upload(file)