mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor: inject api prefix into router startup
This commit is contained in:
@@ -197,7 +197,7 @@ def build_lifecycle_components(app: FastAPI) -> tuple[LifecycleComponent, ...]:
|
||||
LifecycleComponent(
|
||||
name="路由",
|
||||
dependencies=("数据库连接预算",),
|
||||
start=lambda: init_routers(app),
|
||||
start=lambda: init_routers(app, settings.API_V1_STR),
|
||||
start_order=60,
|
||||
start_timeout_seconds=30,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user