ParthCodes commited on
Commit
762f2c1
·
verified ·
1 Parent(s): 018b21a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -581,6 +581,12 @@ def mindmapGet():
581
  userId = request.userId
582
  return getMindmap(userId, savedMindmap)
583
 
 
 
 
 
 
 
584
  @app.route('/mindmap/get/<id>', methods=['GET'])
585
  def mindmapGetById(id):
586
  return getMindmapByid(id, savedMindmap)
 
581
  userId = request.userId
582
  return getMindmap(userId, savedMindmap)
583
 
584
+ @app.route('/mindmap/history/get', methods=['GET'])
585
+ @auth_user
586
+ def mindmapGetHistory():
587
+ userId = request.userId
588
+ return getMindmapHistory(userId, savedMindmap)
589
+
590
  @app.route('/mindmap/get/<id>', methods=['GET'])
591
  def mindmapGetById(id):
592
  return getMindmapByid(id, savedMindmap)