A mountpoint defines a collection of URL *routes* which map incoming requests on to moya code.
An app will typically have at least one mountpoint with name="main"
(the default) which is used when the app is mounted. Moya will check each enclosed <url> in turn until it finds a route which matches.
An app may contain multiple mountpoints, which can be mounted separately.
<mountpoint name="main"><!-- should contain <url> tags --></mountpoint>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
name |
Mountpoint name unique to the application | text | No | "main" |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
if |
Conditional expression | expression | No | yes |