From: Michael Tremer Date: Sun, 15 Jun 2025 14:01:51 +0000 (+0000) Subject: API: Load sub-modules with the app X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640861ee4a0ffa23a2b97d78d59fca3a581b12a6;p=pbs.git API: Load sub-modules with the app Signed-off-by: Michael Tremer --- diff --git a/src/api/__init__.py b/src/api/__init__.py index fbc47741..e55f07f5 100644 --- a/src/api/__init__.py +++ b/src/api/__init__.py @@ -26,5 +26,3 @@ backend = Backend("/etc/pakfire/pbs.conf") # Import the app from .app import app - -from . import builds diff --git a/src/api/app.py b/src/api/app.py index 3546ae99..bd87bebc 100644 --- a/src/api/app.py +++ b/src/api/app.py @@ -37,3 +37,6 @@ app.add_middleware( allow_methods=["*"], allow_headers=["*"], ) + +# Load all further modules +from . import builds