Sha256: 2ff86689cebe1b239a858d246ac53a56f54c3a120c57d561dd65864fe502c188

Contents?: true

Size: 692 Bytes

Versions: 24

Compression:

Stored size: 692 Bytes

Contents

Rails.application.routes.draw do
  resources :template_syncs, :only => [:index]

  resources :ui_template_syncs, :only => [] do
    collection do
      get 'sync_settings'
      post 'import'
      post 'export'
    end
  end

  match '/template_syncs/*page' => 'template_syncs#index', :via => [:get]

  namespace :api, :defaults => { :format => 'json' } do
    scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do
      resources :templates, :controller => :template, :only => [] do
        collection do
          post 'import'
          post 'export'
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 config/routes.rb
foreman_templates-10.0.1 config/routes.rb
foreman_templates-10.0.0 config/routes.rb
foreman_templates-9.5.1 config/routes.rb
foreman_templates-9.5.0 config/routes.rb
foreman_templates-9.3.3 config/routes.rb
foreman_templates-9.3.2 config/routes.rb
foreman_templates-9.3.1 config/routes.rb
foreman_templates-9.4.0 config/routes.rb
foreman_templates-9.3.0 config/routes.rb
foreman_templates-9.2.0 config/routes.rb
foreman_templates-9.1.0 config/routes.rb
foreman_templates-9.0.2 config/routes.rb
foreman_templates-9.0.1 config/routes.rb
foreman_templates-9.0.0 config/routes.rb
foreman_templates-7.0.7 config/routes.rb
foreman_templates-8.0.0 config/routes.rb
foreman_templates-7.0.6 config/routes.rb
foreman_templates-7.0.5 config/routes.rb
foreman_templates-7.0.4 config/routes.rb