Sha256: 42c74534e11bec97145d58a8a565ce2c5c04a335f9b29fd1b385b181dfac8c3c

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

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 :widget_class_selection
      get :modification
      get :widget_modification

      post :copy
      post :duplicate

      put :revert
      put :restore
      put :mark_resolved
      put :destroy_widget
      put :revert_widget
      put :restore_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'

  get 'scrivito', to: 'scrivito/ui#index', as: 'scrivito_ui'
  get 'scrivito/*application_path', to: 'scrivito/ui#index', format: false
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scrivito_sdk-0.42.1 config/routes.rb
scrivito_sdk-0.42.1.rc3 config/routes.rb
scrivito_sdk-0.42.1.rc2 config/routes.rb
scrivito_sdk-0.42.1.rc1 config/routes.rb
scrivito_sdk-0.42.0 config/routes.rb
scrivito_sdk-0.41.1 config/routes.rb
scrivito_sdk-0.41.0 config/routes.rb
scrivito_sdk-0.41.0.rc2 config/routes.rb
scrivito_sdk-0.41.0.rc1 config/routes.rb