Explorar el Código

add backstage routes for home and editor

weichen hace 4 años
padre
commit
31220274a5
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  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')