Add HTML5 authoring changes panel
This commit is contained in:
@@ -36,6 +36,7 @@ from neo4j import AsyncGraphDatabase
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from api_server.html5 import (
|
||||
render_html5_authoring_changes,
|
||||
render_html5_editor,
|
||||
render_html5_index,
|
||||
render_html5_project_setup,
|
||||
@@ -1732,6 +1733,14 @@ async def html5_project_review(project_id: str) -> Response:
|
||||
)
|
||||
|
||||
|
||||
@app.get("/html5/projects/{project_id}/authoring/changes")
|
||||
async def html5_project_authoring_changes(project_id: str) -> Response:
|
||||
return Response(
|
||||
render_html5_authoring_changes(project_id, _authoring_change_summaries(project_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