from flask import Blueprint, render_template bp = Blueprint("topics", __name__, url_prefix = "/threads/") @bp.get("/") def thread(slug): return slug