aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/views/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/views/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/webmentions_ssg/views/__init__.py b/webmentions_ssg/views/__init__.py
new file mode 100644
index 0000000..91966d4
--- /dev/null
+++ b/webmentions_ssg/views/__init__.py
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
+"""Register all views under the historic root Blueprint."""
+
+from flask import Blueprint
+
+root_page = Blueprint("root", __name__)
+
+
+def register_routes() -> Blueprint:
+ """Import task-backed view handlers after Huey initialization and return the Blueprint."""
+ from . import admin, endpoint, session # noqa: F401
+
+ return root_page