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-7.0.3 | config/routes.rb |
foreman_templates-7.0.2 | config/routes.rb |
foreman_templates-7.0.1 | config/routes.rb |
foreman_templates-7.0.0 | config/routes.rb |