Sha256: 798176656918994da1ca1d3cf48bc61b37940deeeabab14bd40acf2d9267ba56

Contents?: true

Size: 863 Bytes

Versions: 4

Compression:

Stored size: 863 Bytes

Contents

Rails.application.routes.draw do
  resources :objs, controller: 'scrivito/objs', path: '__scrivito/objs',
      only: [:create, :update, :destroy] do
    collection do
      get :page_class_selection
      get :search
    end

    member do
      get :details
      get :widget_class_selection

      post :copy
      post :copy_widget
      post :create_widget
      post :duplicate

      put :revert
      put :restore
      put :mark_resolved
    end
  end

  resources :tasks, controller: 'scrivito/tasks', path: '__scrivito/tasks', only: [:show]

  get '__scrivito/blobs/upload_permission' => 'scrivito/blobs#upload_permission'

  resources :workspaces,
    controller: 'scrivito/workspaces',
    path: '__scrivito/workspaces',
    only: [:index, :create, :update, :destroy] do
      member do
        put :rebase
        put :publish
      end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scrivito_sdk-0.15.0 config/routes.rb
scrivito_sdk-0.14.0 config/routes.rb
scrivito_sdk-0.13.0 config/routes.rb
scrivito_sdk-0.12.0 config/routes.rb