Rails.application.routes.draw do resources :objs, controller: 'rails_connector/objs', path: '__ipcms/objs', only: [:show, :edit, :create, :update, :destroy] do get :page_class_selection, on: :collection member do get :widget_class_selection post :create_widget end end resources :tasks, controller: 'rails_connector/tasks', path: '__ipcms/tasks', only: [:show] match '__ipcms/blobs/upload_permission' => 'rails_connector/blobs#upload_permission', via: :get resources :workspaces, controller: 'rails_connector/workspaces', path: '__ipcms/workspaces', only: [:index, :create, :update, :destroy] do member do put :publish end end end