# zotonic\_site\_testsandbox dispatch rules (testing)

Source: https://zotonic.com/docs/2693/zotonic_site_testsandbox-dispatch-rules-testing

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

Language: en

URL dispatch rules defined by zotonic_site_testsandbox in apps/zotonic_site_testsandbox/priv/dispatch/testing.

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

Source: `apps/zotonic_site_testsandbox/priv/dispatch/testing`

This set is stored in the `testing` dispatch file.

::: {.table-responsive}
| Dispatch name | Path              | Controller                                                                       | Options                                          |
| ------------- | ----------------- | -------------------------------------------------------------------------------- | ------------------------------------------------ |
| `home`        | `/`               | <a class="dispatch-controller-link" href="/id/doc_controller_controller_template"><code>controller_template</code></a> | `[{template,"home.tpl"}]`                        |
| `helloworld`  | `/helloworld`     | <a class="dispatch-controller-link" href="/id/doc_controller_controller_template"><code>controller_template</code></a> | `[{template,"helloworld.tpl"},{anonymous,true}]` |
| `test`        | `/test`           | <a class="dispatch-controller-link" href="/id/doc_controller_controller_test_helloworld"><code>controller_test_helloworld</code></a> | `[]`                                             |
| `page`        | `/page/:id`       | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{template,{cat,"page.tpl"}}]`                  |
| `page`        | `/page/:id/:slug` | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{template,{cat,"page.tpl"}}]`                  |
:::

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2693?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/2693?language=en>)
