DocuRAG / Api /src /modules /uploadDocument /routes /uploadDocument_route.py
abadesalex's picture
infraestructure and feature upload
57cab59
raw
history blame
363 Bytes
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)