Sha256: 33762b88a869f801107e557ec75c3c56ad778cfa5003435e6ce36c8638bc8872
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 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], 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kms-1.0.1 | config/routes.rb |
kms-1.0.0 | config/routes.rb |