from flask import Blueprint bp = Blueprint('posts', __name__, url_prefix='/posts/') @bp.get('//edit/') def edit(post_id): return 'stub'