# mod\_base dispatch rules (dispatch-cotonic)

Source: https://zotonic.com/docs/2143/mod_base-dispatch-rules-dispatch-cotonic

URI: https://zotonic.com/id/2143

Language: en

URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch-cotonic.

This file defines the URL dispatch rules for `mod_base`. Rules are matched from top to bottom; the first matching rule handles the request.

Source: `apps/zotonic_mod_base/priv/dispatch/dispatch-cotonic`

This set is stored in the `dispatch-cotonic` dispatch file.

::: {.table-responsive}
| Dispatch name    | Path                                | Controller                                                                       | Options                                                                 |
| ---------------- | ----------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `mqtt_transport` | `/mqtt-transport`                   | <a class="dispatch-controller-link" href="/id/doc_controller_controller_mqtt_transport"><code>controller_mqtt_transport</code></a> | `[]`                                                                    |
| `mqtt_transport` | `/mqtt-transport/:zotonic_ticket/*` | <a class="dispatch-controller-link" href="/id/doc_controller_controller_mqtt_transport"><code>controller_mqtt_transport</code></a> | `[]`                                                                    |
| `service_worker` | `/cotonic-service-worker.js`        | <a class="dispatch-controller-link" href="/id/doc_controller_controller_file"><code>controller_file</code></a> | `[{root,[lib]},{max_age,1},{path,"cotonic/cotonic-service-worker.js"}]` |
| `keyserver_key`  | `/keyserver-key.js`                 | <a class="dispatch-controller-link" href="/id/doc_controller_controller_keyserver_key"><code>controller_keyserver_key</code></a> | `[]`                                                                    |
:::

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2143?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2143?language=en>)
