Add HTML5 authoring rollback detail

This commit is contained in:
2026-05-16 22:57:52 +03:00
parent 165f218e1c
commit d2c42cabda
3 changed files with 99 additions and 2 deletions
@@ -37,6 +37,7 @@ from pydantic import BaseModel, Field
from api_server.html5 import (
render_html5_authoring_changes,
render_html5_authoring_change_detail,
render_html5_editor,
render_html5_index,
render_html5_project_setup,
@@ -1741,6 +1742,14 @@ async def html5_project_authoring_changes(project_id: str) -> Response:
)
@app.get("/html5/projects/{project_id}/authoring/changes/{change_id}")
async def html5_project_authoring_change_detail(project_id: str, change_id: str) -> Response:
return Response(
render_html5_authoring_change_detail(project_id, _authoring_rollback_preview(project_id, change_id)),
media_type="text/html; charset=utf-8",
)
@app.get("/html5/projects/{project_id}/setup")
async def html5_project_setup(project_id: str) -> Response:
setup = _project_setup_response(project_id)