Module base

Source
Expand description

Controller for static assets and other routes shared between the app and the general web site.

Functionsยง

asset_or_404 ๐Ÿ”’
get_app_css
get_asset_zip ๐Ÿ”’
get_dependencies_zip
get_doc_index
get_doc_page
get_installer_linux_x64
get_src_zip
json_redirect_response ๐Ÿ”’
Build a JSON redirect response with X-CollectiveToolbox-IsJsRedirect header.
redirect_permanent
Redirect helper for 308 (Permanent Redirect, preserves method). If X-CollectiveToolbox-IsJsRequest header is present, returns JSON with target URL and X-CollectiveToolbox-IsJsRedirect response header.
redirect_temporary
Redirect helper for 303 (See Other, changes POST to GET). If X-CollectiveToolbox-IsJsRequest header is present, returns JSON with target URL and X-CollectiveToolbox-IsJsRedirect response header.
redirect_temporary_preserve_method
Redirect helper for 307 (Temporary Redirect, preserves method). If X-CollectiveToolbox-IsJsRequest header is present, returns JSON with target URL and X-CollectiveToolbox-IsJsRedirect response header.
static_or_404