Ver Fonte

add backstage routes for home and editor

weichen há 4 anos atrás
pai
commit
31220274a5
1 ficheiros alterados com 13 adições e 0 exclusões
  1. 13 0
      backstage/routes.py

+ 13 - 0
backstage/routes.py

@@ -0,0 +1,13 @@
+from flask import render_template, url_for
+from backstage import app
+
+
+@app.route('/backstage')
+@app.route('/backstage/home')
+def home():
+    return render_template('home.html')
+
+
+@app.route('/backstage/editor')
+def editor():
+    return render_template('editor.html', title='Type Editor')