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:
parent
10f9322a1d
commit
ded784219e
@ -18,4 +18,7 @@ def create_app(test_config=None):
|
|||||||
else:
|
else:
|
||||||
app.config.from_mapping(test_config)
|
app.config.from_mapping(test_config)
|
||||||
|
|
||||||
|
from . import journal
|
||||||
|
app.register_blueprint(journal.bp)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
10
incorporealcms/journal.py
Normal file
10
incorporealcms/journal.py
Normal 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
|
Loading…
x
Reference in New Issue
Block a user