# mod\_survey dispatch rules (survey)

Source: https://zotonic.com/docs/2109/mod_survey-dispatch-rules-survey

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

Language: en

URL dispatch rules defined by mod_survey in apps/zotonic_mod_survey/priv/dispatch/survey.

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

Source: `apps/zotonic_mod_survey/priv/dispatch/survey`

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

::: {.table-responsive}
| Dispatch name              | Path                                 | Controller                                                                       | Options                                                                          |
| -------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `survey_results_download`  | `/survey/results/download/:id`       | <a class="dispatch-controller-link" href="/id/doc_controller_controller_export_resource"><code>controller_export_resource</code></a> | `[{content_type,xlsx}]`                                                          |
| `survey_results_download`  | `/survey/results/download/:type/:id` | <a class="dispatch-controller-link" href="/id/doc_controller_controller_export_resource"><code>controller_export_resource</code></a> | `[]`                                                                             |
| `survey_results_printable` | `/survey/results/printable/:id`      | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{acl_action,update}, {is_canonical,false}, {template,<<"survey_results_printable.tpl">>}]` |
| `survey_results`           | `/survey/results/:id`                | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{is_canonical,false}, {template,<<"survey_results.tpl">>}, {is_aggregated,true}]` |
| `survey_results`           | `/survey/results/:id/:slug`          | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{is_canonical,false}, {template,<<"survey_results.tpl">>}, {is_aggregated,true}]` |
| `survey`                   | `/survey/:id`                        | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{template,{cat,<<"survey.tpl">>}}]`                                            |
| `survey`                   | `/survey/:id/:slug`                  | <a class="dispatch-controller-link" href="/id/doc_controller_controller_page"><code>controller_page</code></a> | `[{template,{cat,<<"survey.tpl">>}}]`                                            |
| `admin_survey_editor`      | `/admin/survey/:id`                  | <a class="dispatch-controller-link" href="/id/doc_controller_controller_admin"><code>controller_admin</code></a> | `[{acl,{use,mod_survey}},{template,<<"admin_survey_editor.tpl">>},seo_noindex]`  |
:::

License: 

Attribution: 

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