1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# frozen_string_literal: true
Sandbox::Application.routes.draw do
root to: "integration_examples#index"
get :content_areas, to: "integration_examples#content_areas"
get :slots, to: "integration_examples#slots"
get :empty_slot, to: "integration_examples#empty_slot"
get :empty_slot_v2_with_slim, to: "integration_examples#empty_slot_v2_with_slim"
get :partial, to: "integration_examples#partial"
get :content, to: "integration_examples#content"
get :variants, to: "integration_examples#variants"
get :products, to: "integration_examples#products"
get :inline_products, to: "integration_examples#inline_products"
get :cached, to: "integration_examples#cached"
get :render_check, to: "integration_examples#render_check"
get :controller_inline, to: "integration_examples#controller_inline"
get :controller_inline_with_block, to: "integration_examples#controller_inline_with_block"
get :controller_inline_baseline, to: "integration_examples#controller_inline_baseline"
get :controller_to_string, to: "integration_examples#controller_to_string"
get :render_component, to: "integration_examples#render_component"
get :controller_inline_render_component, to: "integration_examples#controller_inline_render_component"
get :controller_to_string_render_component, to: "integration_examples#controller_to_string_render_component"
get :layout_default, to: "layouts#default"
get :layout_global_for_action, to: "layouts#global_for_action"
get :layout_explicit_in_action, to: "layouts#explicit_in_action"
get :layout_disabled_in_action, to: "layouts#disabled_in_action"
get :layout_with_content_for, to: "layouts#with_content_for"
get :nested_haml, to: "integration_examples#nested_haml"
get :link_to_helper, to: "integration_examples#link_to_helper"
get :cached_capture, to: "integration_examples#cached_capture"
get :cached_partial, to: "integration_examples#cached_partial"
get :inherited_sidecar, to: "integration_examples#inherited_sidecar"
get :inherited_from_uncompilable_component, to: "integration_examples#inherited_from_uncompilable_component"
constraints(lambda { |request| request.env["warden"].authenticate! }) do
get :constraints_with_env, to: "integration_examples#index"
end
end
|