App Controller
mountaineer.app.AppController
AppController(
*,
name="Mountaineer Webapp",
version="0.1.0",
view_root=None,
global_metadata=None,
custom_builders=None,
config=None,
fastapi_args=None
)
Main entrypoint of a project web application.
PARAMETER | DESCRIPTION |
---|---|
global_metadata |
Script and meta will be applied to every page rendered by this application. Title will only be applied if the page does not already have a title set.
TYPE:
|
config |
Application global configuration.
TYPE:
|
register
register(controller)
Register a new controller. This will:
- Mount the html of the controller to the main application service
- Mount all actions (ie. @sideeffect and @passthrough decorated functions) to their public API
PARAMETER | DESCRIPTION |
---|---|
controller |
The controller instance that should be added to your webapp. The class accepts a full instance instead of just a class, so you're able to perform any kind of runtime initialization of the kwarg args that you need before it's registered.
TYPE:
|