Sha256: 43b204f3aedeffb149b9ca3348c198deecaa6709ccf394130970336edd75235c

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

Rails.application.routes.draw do
  namespace :kms do
    constraints(format: "json") do
      resources :pages, format: true do
        collection do
          post 'sorting'
        end
      end
      resources :templates, except: [:new, :edit], format: true
      resources :snippets, except: [:new, :edit], format: true
      resources :users, only: [:index, :destroy], format: true do
        post :from_kms, on: :collection, action: :create
        get :kms_user, on: :collection
      end
      resources :assets, except: [:new, :edit], format: true, as: :kms_assets
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kms-1.0.1 spec/internal/config/routes.rb
kms-1.0.0 spec/internal/config/routes.rb