Sha256: bbe75928509e39508439b6a56c17c5137842f5bd559d165bf94f2af2dd3dd2b4

Contents?: true

Size: 600 Bytes

Versions: 5

Compression:

Stored size: 600 Bytes

Contents

Blacksand::Engine.routes.draw do
  scope module: :dashboard do
    get '/' => 'pages#default'

    # TODO
    # resources :users

    resources :pages, except: [:show] do
      collection do
        get 'onchange_new'
        post 'sort'

        get 'children_partial'
        get 'search'
      end

      member do
        get 'onchange_edit'
        get 'get_prototype_id'
        get 'render_manage'
      end
    end

    resources :navigations do
      post :reorder, on: :collection
    end

    resources :templates, only: [:index]
    resources :prototypes, only: [:index, :show]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacksand-2.5.0 config/routes.rb
blacksand-2.4.1 config/routes.rb
blacksand-2.4.0 config/routes.rb
blacksand-2.3.0 config/routes.rb
blacksand-2.2.2.1 config/routes.rb