Sha256: d784a4b1a49742cb41418088edca6ba48fa23c43a4c2d286e1c18fc824517839

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

Rails.application.routes.draw do

  namespace "fe" do
    namespace :admin do
      resources :email_templates
      resources :question_sheets do
        member do
          post :archive
          post :unarchive
          post :duplicate
        end
        resources :pages,                               # pages/
                  :controller => :question_pages do         # question_sheet_pages_path(),
          collection do
            post :reorder
          end
          member do
            get :show_panel
          end
          resources :elements do
            collection do
              post :reorder
            end
            member do
              get :remove_from_grid
              post :use_existing
              post :drop
              post :duplicate
            end
          end
        end
      end
    end
  end

  match 'fe/references/done' => "fe/reference_sheets#done", via: [:get, :post]

  # form capture and review
  namespace "fe" do
    resources :reference_sheets
    resources :answer_sheets do
      member do
        post :send_reference_invite
        post :submit
      end
      resources  :page, :controller => :answer_pages do
        member do
          post :save_file
        end
      end
    end
  end

  resources :elements, :namespace => "fe"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-1.0.0 config/routes.rb