mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 10:03:45 +03:00
12 lines
390 B
Python
12 lines
390 B
Python
from fastapi import APIRouter, Depends
|
|
from app.core.deps import require_role
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/init")
|
|
def upload_init(admin=Depends(require_role("ADMIN","LAWYER"))):
|
|
return {"method": "PRESIGNED_PUT", "presigned_url": "https://s3.local/..."}
|
|
|
|
@router.post("/complete")
|
|
def upload_complete(admin=Depends(require_role("ADMIN","LAWYER"))):
|
|
return {"status": "ok"}
|