26 lines
561 B
Python
26 lines
561 B
Python
"""Endpoints for file upload."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.core.common import Message
|
|
|
|
router = APIRouter(prefix="/files", tags=["files"])
|
|
|
|
|
|
@router.post(path="/upload")
|
|
def upload_file() -> Message:
|
|
"""Upload file endpoint."""
|
|
return {"status": "healthy"}
|
|
|
|
|
|
@router.post(path="/{file_id}/download")
|
|
def download_file(file_id: str) -> Message:
|
|
"""Download file endpoint."""
|
|
return {"status": file_id}
|
|
|
|
|
|
@router.delete(path="/{file_id}")
|
|
def delete_file(file_id: str) -> Message:
|
|
"""Delete file endpoint."""
|
|
return {"status": file_id}
|