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
This commit is contained in:
Brian S. Stephan 2020-03-06 18:08:24 -06:00
parent 10f9322a1d
commit ded784219e
2 changed files with 13 additions and 0 deletions

View File

@ -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

10
incorporealcms/journal.py Normal file
View File

@ -0,0 +1,10 @@
"""Journal functionality."""
from flask import Blueprint
bp = Blueprint('journal_views', __name__, url_prefix='/')
@bp.route('/', defaults={'path': 'INDEX'})
@bp.route('/<path:path>')
def display_journal_entry(path):
return path