Restructure backend and frontend modules; add story, library, and editor schema migrations. Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews. Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
20 lines
497 B
Python
20 lines
497 B
Python
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
|
|
)
|