Sha256: 917fa9b916fdbc5636d18e85c5a70c4647b92c3b267366e98c1d400014c7e5dc

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 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 :duplicate

      put :revert
      put :restore
      put :mark_resolved
      put :destroy_widget
    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, :show, :create, :update, :destroy] do
      member do
        put :rebase
        put :publish
        get :check
      end
    end

  get '__scrivito/users/suggest' => 'scrivito/users#suggest'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrivito_sdk-0.18.1 config/routes.rb
scrivito_sdk-0.18.0 config/routes.rb