Declarative relation registry via defrelation s-expressions with cardinality enforcement (one-to-one, one-to-many, many-to-many), registry-aware relate/unrelate/can-relate API endpoints, generic container-nav fragment, and relation-driven UI components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
556 B
Python
24 lines
556 B
Python
from __future__ import annotations
|
|
import path_setup # noqa: F401
|
|
|
|
from shared.infrastructure.factory import create_base_app
|
|
|
|
from bp import register_actions, register_data, register_fragments
|
|
from services import register_domain_services
|
|
|
|
|
|
def create_app() -> "Quart":
|
|
app = create_base_app(
|
|
"relations",
|
|
domain_services_fn=register_domain_services,
|
|
)
|
|
|
|
app.register_blueprint(register_actions())
|
|
app.register_blueprint(register_data())
|
|
app.register_blueprint(register_fragments())
|
|
|
|
return app
|
|
|
|
|
|
app = create_app()
|