Spaces:
Running
Running
File size: 363 Bytes
57cab59 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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)
|