From 4bd1d9e348918b2e55db47a1ac3489d035cf55e2 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 12 Nov 2026 19:57:08 +0100 Subject: refactor(core): split modules by responsibility Break up monolithic views, task helpers, networking, CLI, and application extension setup so each module owns a focused concern. Reorganize the test suite around the new boundaries while preserving existing Webmention behavior and coverage. --- webmentions_ssg/views/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 webmentions_ssg/views/__init__.py (limited to 'webmentions_ssg/views/__init__.py') 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 +# +# 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 -- cgit v1.3.1