cmvr-visual/backend/app/api/routes/submissions.py

20 lines
497 B
Python
Raw Normal View History

from fastapi import APIRouter, Depends, Request
from app.core.security import Actor
from app.api.dependencies import current_actor
from app.services import submissions as service
router = APIRouter(prefix="/submissions", tags=["submissions"])
@router.get("/{key}")
async def recover(
key: str, request: Request, operation: str, actor: Actor = Depends(current_actor)
):
return await service.recover(
key=key, runtime=request.app.state, operation=operation, actor=actor
)