Sha256: e49e2a41d0465430da7a58a98ea8e1cc213329df2b60fc7c284d231a41c5d58a

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

Helena::Engine.routes.draw do
  resources :surveys
  resources :sessions, only: [:show, :edit, :update], param: :token

  scope :admin, as: :admin, module: :admin do
    concern :movable do
      patch :move_up, on: :member
      patch :move_down, on: :member
    end

    resources :surveys, concerns: :movable do
      resources :sessions, only: [:index, :destroy]
      resources :versions
      resources :question_groups, concerns: :movable do
        resources :questions, concerns: :movable
        resource :questions do
          resources :short_texts, module: 'questions'
          resources :long_texts, module: 'questions'
          resources :static_texts, module: 'questions'
          resources :radio_groups, module: 'questions'
          resources :checkbox_groups, module: 'questions'
          resources :radio_matrix, module: 'questions'
          resources :checkbox_matrix, module: 'questions'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 config/routes.rb