]> git.ipfire.org Git - pbs.git/commitdiff
API: Load sub-modules with the app
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Jun 2025 14:01:51 +0000 (14:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Jun 2025 14:01:51 +0000 (14:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/api/__init__.py
src/api/app.py

index fbc477412822a2b4bb62cfe3a0883a38653cdee8..e55f07f5f463907d1541d27cc87de7dd55b7ebfe 100644 (file)
@@ -26,5 +26,3 @@ backend = Backend("/etc/pakfire/pbs.conf")
 
 # Import the app
 from .app import app
-
-from . import builds
index 3546ae9952829f05dfaf568e8f5250e9496d39f7..bd87bebc8325f38bf62b594b463279820636bbb1 100644 (file)
@@ -37,3 +37,6 @@ app.add_middleware(
        allow_methods=["*"],
        allow_headers=["*"],
 )
+
+# Load all further modules
+from . import builds