From ded784219ea76ff7662925e9c14f302e787e0442 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 6 Mar 2020 18:08:24 -0600 Subject: [PATCH] skeleton journal functionality --- catch-all view all this does at the moment is echoes the path from the request back in the response, but it's the super basic plumbing I can write at the moment --- incorporealcms/__init__.py | 3 +++ incorporealcms/journal.py | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 incorporealcms/journal.py diff --git a/incorporealcms/__init__.py b/incorporealcms/__init__.py index c4820cf..744c867 100644 --- a/incorporealcms/__init__.py +++ b/incorporealcms/__init__.py @@ -18,4 +18,7 @@ def create_app(test_config=None): else: app.config.from_mapping(test_config) + from . import journal + app.register_blueprint(journal.bp) + return app diff --git a/incorporealcms/journal.py b/incorporealcms/journal.py new file mode 100644 index 0000000..833e29d --- /dev/null +++ b/incorporealcms/journal.py @@ -0,0 +1,10 @@ +"""Journal functionality.""" +from flask import Blueprint + +bp = Blueprint('journal_views', __name__, url_prefix='/') + + +@bp.route('/', defaults={'path': 'INDEX'}) +@bp.route('/') +def display_journal_entry(path): + return path