yera.ui.fastapi_app
Construct the local FastAPI application from independent route registrars.
The application owns static-file mounting. Feature-specific modules receive the application through registrars and attach their routes in the supplied order.
Symbols
create_fastapi_app
create_fastapi_app(
route_registrars: Iterable[RouteRegistrar],
) → FastAPICreate the local UI application and register its HTTP interfaces.
The function mounts packaged assets at /static before invoking each
registrar in order. Registrars receive the same application and close over
any server capabilities they need, keeping application construction
independent from the concrete server implementation.
Parameters
route_registrars
type: Iterable[RouteRegistrar]
Functions that attach one route family to the application.
Returns
type: FastAPI
A configured FastAPI application with static assets and every supplied route family registered.