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:
2019-11-13 18:47:28 +01:00
parent c168c09293
commit b76be2a7ba
2 changed files with 19 additions and 0 deletions

View File

@@ -102,6 +102,18 @@ def _homepage_context() -> dict:
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')
def login():
from flask import request

View File

@@ -0,0 +1,7 @@
| {% extends 'layout.html' %}
| {% block body %}
.row.py-2
.col.text-center
h1 Design System goes here
| {% endblock %}