mod_survey dispatch rules (survey)
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.
| Dispatch name | Path | Controller | Options |
|---|---|---|---|
survey_results_download | /survey/results/download/:id | controller_export_resource | [{content_type,xlsx}] |
survey_results_download | /survey/results/download/:type/:id | controller_export_resource | [] |
survey_results_printable | /survey/results/printable/:id | controller_page | [{acl_action,update},
{is_canonical,false},
{template,<<"survey_results_printable.tpl">>}] |
survey_results | /survey/results/:id | controller_page | [{is_canonical,false},
{template,<<"survey_results.tpl">>},
{is_aggregated,true}] |
survey_results | /survey/results/:id/:slug | controller_page | [{is_canonical,false},
{template,<<"survey_results.tpl">>},
{is_aggregated,true}] |
survey | /survey/:id | controller_page | [{template,{cat,<<"survey.tpl">>}}] |
survey | /survey/:id/:slug | controller_page | [{template,{cat,<<"survey.tpl">>}}] |
admin_survey_editor | /admin/survey/:id | controller_admin | [{acl,{use,mod_survey}},{template,<<"admin_survey_editor.tpl">>},seo_noindex] |