about summary refs log tree commit diff
path: root/gn2/wqflask/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/views.py')
-rw-r--r--gn2/wqflask/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index ce8cabd0..cfcbf150 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -312,7 +312,10 @@ def gnqna():
 
 @app.route("/editor/", methods=["GET"])
 def edit_gn_file():
-    return render_template("gn_editor.html")
+    import requests
+    results = requests.get("http://localhost:8091/edit?file_path=test.md")
+    data = results.json()
+    return render_template("gn_editor.html", **data)
 
 
 @app.route("/editor/settings", methods=["GET"])