Spaces:
Running
Running
from fastapi import APIRouter, File, HTTPException, UploadFile | |
from src.modules.uploadDocument.controllers.file_upload_controller import \ | |
FileUploadController | |
router = APIRouter() | |
controller = FileUploadController() | |
async def upload_file(file: UploadFile = File(...)): | |
return await controller.handle_file_upload(file) | |