mirror of
https://github.com/borbann-platform/backend-api.git
synced 2025-12-18 20:24:05 +01:00
9 lines
254 B
Python
9 lines
254 B
Python
from fastapi import Request
|
|
|
|
|
|
async def get_pipeline_service(request: Request):
|
|
service = request.app.state.pipeline_service
|
|
if not service:
|
|
raise Exception("PipelineService not initialized or available in app state.")
|
|
return service
|