config/precedence_routes.rb in infopark_fiona7-1.5.5.5.1 vs config/precedence_routes.rb in infopark_fiona7-1.6.1.1.0

- old
+ new

@@ -3,10 +3,11 @@ mount Scrivito::SdkEngine, at: '/', as: :scrivito_engine end Fiona7::Engine.routes.draw do match '/_f7/tenants/:name/perform', to: 'fiona7/api#perform', via: [:post, :put] + match '/_f7/uploads/temp', to: 'fiona7/uploads#create', via: [:post] get '/_b/:id(/:name)' => 'fiona7/blobs#show', as: :fiona7_blob match '/_b/:id(/:name)' => 'fiona7/blobs#query', as: :fiona7_blob_meta, via: [:head] post '/_f7/login', to: 'fiona7/sessions#create', as: :fiona7_login @@ -33,28 +34,22 @@ get 'scrivito/*application_path', to: 'scrivito/ui#index', format: false scope '__scrivito', module: 'scrivito' do get ':id', to: 'cms_dispatch#index', as: :base_id, constraints: {id: /\d+/} # <-- patch here - resources :objs, controller: 'objs', only: [:show, :create, :update, :destroy], - defaults: {format: :json} do + resources :objs, controller: 'objs', only: [:show], defaults: {format: :json} do collection do get :page_class_selection get :search end member do get :widget get :widget_class_selection get :widget_modification - get :conflicting_workspaces - get :binary_no_cache - put :revert put :restore - put :revert_widget - put :restore_widget put :transfer_modifications end end resources :tasks, controller: 'tasks', only: [:show], defaults: {format: :json} @@ -71,10 +66,15 @@ put :publish_approval get :check end end + put 'users/mget' => 'users#mget', defaults: {format: :json} get 'users/suggest' => 'users#suggest', defaults: {format: :json} + get 'users/publish_ability' => 'users#publish_ability', defaults: {format: :json} + + put 'ui_configs/mget' => 'ui_configs#mget', defaults: {format: :json} + get 'suggest_completion' => 'completion#suggest', defaults: {format: :json} get 'render_widget/:id/show_widget/:widget_id' => 'cms_dispatch#show_widget' get 'render_widget/:id/widget_details/:widget_id' => 'cms_dispatch#widget_details'