diff options
| author | Dennis Fink | 2026-11-12 23:34:46 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-12 23:37:08 +0100 |
| commit | 52fc66cb5ff19bf0def001ae50acc1b465a0b977 (patch) | |
| tree | e791fa3e6d9f9b1b6fdf697f821adc84d2a57f0b /webmentions_ssg/views/__init__.py | |
| parent | b439de2005b70ec3867d589d1f4c63b83441e620 (diff) | |
| download | webmentions-ssg-52fc66cb5ff19bf0def001ae50acc1b465a0b977.tar.gz webmentions-ssg-52fc66cb5ff19bf0def001ae50acc1b465a0b977.zip | |
fix(core): decouple task imports from app initialization
Keep stable lazy task handles that register against the active Huey
backend so modules can be imported before app creation and survive
backend reinitialization.
Separate package metadata and the shared blueprint from application
startup to remove import-order dependencies and keep build-time version
lookup lightweight.
Diffstat (limited to 'webmentions_ssg/views/__init__.py')
| -rw-r--r-- | webmentions_ssg/views/__init__.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/webmentions_ssg/views/__init__.py b/webmentions_ssg/views/__init__.py index 91966d4..ffe9a27 100644 --- a/webmentions_ssg/views/__init__.py +++ b/webmentions_ssg/views/__init__.py @@ -2,15 +2,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Register all views under the historic root Blueprint.""" +"""Collect and expose the routes for the historic root Blueprint.""" -from flask import Blueprint +from . import admin, endpoint, session +from .blueprint import root_page -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 +__all__ = ["admin", "endpoint", "root_page", "session"] |
