Called after the plugin is discovered. Used for initialization logic, e.g. checking dependencies, reading config.
(self)
| 69 | # ------------------------------------------------------------------ # |
| 70 | |
| 71 | def on_load(self) -> None: |
| 72 | """Called after the plugin is discovered. Used for initialization logic, e.g. checking dependencies, reading config.""" |
| 73 | |
| 74 | def init_app(self) -> None: |
| 75 | """Called after FastAPI app is bound. Register routes, middleware, and Hooks via self.register_* here.""" |