Setup¶
setup_components(app)¶
Registers component templates and mounts static assets.
What it does¶
- Calls
add_template_directory(app, ...)to register thebfx/templates - Mounts
/static/bfx/to servebluefox.css
Both operations are idempotent — calling setup_components multiple times is safe.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
app | FastAPI | The FastAPI application instance |