flatten the contributions blueprint

This commit is contained in:
Patrick Jentsch
2024-11-14 14:36:18 +01:00
parent ce253f4a65
commit 6aacac2419
27 changed files with 210 additions and 51 deletions

View File

@ -0,0 +1,18 @@
from flask import Blueprint
from flask_login import login_required
bp = Blueprint('transkribus_htr_pipeline_models', __name__)
@bp.before_request
@login_required
def before_request():
'''
Ensures that the routes in this package can only be visited by users that
are logged in.
'''
pass
from . import routes

View File

@ -0,0 +1,7 @@
from flask import abort
from . import bp
@bp.route('/transkribus_htr_pipeline_models')
def index():
return abort(503)