diff options
Diffstat (limited to 'apioforum/forum.py')
-rw-r--r-- | apioforum/forum.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apioforum/forum.py b/apioforum/forum.py index 2931df9..badbd14 100644 --- a/apioforum/forum.py +++ b/apioforum/forum.py @@ -17,6 +17,12 @@ import functools bp = Blueprint("forum", __name__, url_prefix="/") +class Forum(DbWrapper): + table = "forums" + primary_key = "id" + references = {"parent", Forum} + + @bp.route("/") def not_actual_index(): return redirect("/1") |