feat: add collaborative document functionality for lessons
- Create migration scripts for lesson_collaborative_docs table in both cms-service and lms-service. - Implement CollaborativeDocEditor component for real-time editing of collaborative documents. - Add LessonCollaborativeDocPage for instructors to view and manage collaborative documents. - Include conflict resolution handling in the editor. - Enhance UI with status indicators and formatting options for the document editor. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -173,6 +173,15 @@ async fn main() {
|
||||
"/lessons/{id}/collaborative-canvas/stream",
|
||||
get(handlers::stream_lesson_collaborative_canvas),
|
||||
)
|
||||
.route(
|
||||
"/lessons/{id}/collaborative-doc",
|
||||
get(handlers::get_lesson_collaborative_doc)
|
||||
.put(handlers::update_lesson_collaborative_doc),
|
||||
)
|
||||
.route(
|
||||
"/lessons/{id}/collaborative-doc/stream",
|
||||
get(handlers::stream_lesson_collaborative_doc),
|
||||
)
|
||||
.route("/lessons/{id}/bookmark", post(handlers::toggle_bookmark))
|
||||
.route("/bookmarks", get(handlers::get_user_bookmarks))
|
||||
.route("/grades", post(handlers::submit_lesson_score))
|
||||
|
||||
Reference in New Issue
Block a user