Sha256: f2f18b14d125362cc5c8f2a96244663c50c09a75e3c018230dc02c45991cbe94
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
Kms::Engine.routes.draw do devise_for :kms_users, class_name: "Kms::User", failure_app: 'Kms::Devise::FailureApp', module: :devise, controllers: { registrations: "users/registrations" } constraints(format: "json") do resources :templates, except: [:new, :edit], format: true resources :snippets, except: [:new, :edit], format: true resources :pages, except: [:new, :edit], format: true do collection do post 'sorting' end end resources :assets, except: [:new, :edit], format: true, as: :kms_assets resources :users, only: [:index, :destroy, :update, :show], format: true do post :from_kms, on: :collection, action: :create get :kms_user, on: :collection end resources :resources, only: :index, format: true resource :settings, only: [:show, :update], format: true end post "/assets/ckeditor" => "assets#ckeditor" constraints(format: "html") do get "/(*path)" => "kms#index" end end Rails.application.routes.draw do root 'kms/public/pages#show' get "*path" => "kms/public/pages#show" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kms-1.2.1 | config/routes.rb |
kms-1.2.0 | config/routes.rb |
kms-1.1.0 | config/routes.rb |