diff options
| author | Dennis Fink | 2026-11-12 19:57:08 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-12 19:57:08 +0100 |
| commit | 4bd1d9e348918b2e55db47a1ac3489d035cf55e2 (patch) | |
| tree | f7ed41a374a8a4136792039a262dc62aa8cf8c59 /webmentions_ssg/views/__init__.py | |
| parent | 7035e9f9467684cccae2b7ff3faaa62e6a9f91aa (diff) | |
| download | webmentions-ssg-4bd1d9e348918b2e55db47a1ac3489d035cf55e2.tar.gz webmentions-ssg-4bd1d9e348918b2e55db47a1ac3489d035cf55e2.zip | |
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.
Diffstat (limited to 'webmentions_ssg/views/__init__.py')
| -rw-r--r-- | webmentions_ssg/views/__init__.py | 16 |
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 |
