b5a62ee9a3
- domain: User, Workspace, Project, AssetLibrary, Asset, IngestJob - ports: repository interfaces - application: use cases - adapters: in-memory - API: FastAPI 5 routes - worker: Celery ingest_asset - tests: 4 passing
15 lines
311 B
Python
15 lines
311 B
Python
from fastapi import FastAPI
|
|
|
|
from app.api.router import api_router
|
|
from app.core.config import get_settings
|
|
|
|
|
|
def create_app() -> FastAPI:
|
|
settings = get_settings()
|
|
app = FastAPI(title=settings.app_name)
|
|
app.include_router(api_router, prefix=settings.api_prefix)
|
|
return app
|
|
|
|
|
|
app = create_app()
|