Add HTML5 authoring rollback detail
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user