Add /design-system endpoint
This is where the representation of the design system will reside. When the application runs in production (with DEBUG = False) the url will return 404.
This commit is contained in:
@@ -102,6 +102,18 @@ def _homepage_context() -> dict:
|
|||||||
random_featured=random_featured)
|
random_featured=random_featured)
|
||||||
|
|
||||||
|
|
||||||
|
@blueprint.route('/design-system')
|
||||||
|
def design_system():
|
||||||
|
"""Display the design system page.
|
||||||
|
|
||||||
|
This endpoing is intended for development only, and returns a
|
||||||
|
rendered template only if the app is running in debug mode.
|
||||||
|
"""
|
||||||
|
if not current_app.config['DEBUG']:
|
||||||
|
abort(404)
|
||||||
|
return render_template('design_system.html')
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/login')
|
@blueprint.route('/login')
|
||||||
def login():
|
def login():
|
||||||
from flask import request
|
from flask import request
|
||||||
|
7
src/templates/design_system.pug
Normal file
7
src/templates/design_system.pug
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
| {% extends 'layout.html' %}
|
||||||
|
|
||||||
|
| {% block body %}
|
||||||
|
.row.py-2
|
||||||
|
.col.text-center
|
||||||
|
h1 Design System goes here
|
||||||
|
| {% endblock %}
|
Reference in New Issue
Block a user