Sha256: f0b6372d548b2244fd90cf37583ee9af99a32eaaa8c3acda2e6937ec9f1576fd
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
Rails.application.routes.draw do resources :job_templates, :except => [:show] do member do get 'clone_template' get 'lock' get 'unlock' post 'preview' end collection do get 'revision' get 'auto_complete_search' get 'auto_complete_job_name' end end resources :job_invocations, :only => [:new, :create, :show, :index] do collection do post 'refresh' get 'auto_complete_search' end end namespace :api, :defaults => {:format => 'json'} do scope "(:apiv)", :module => :v2, :defaults => {:apiv => 'v2'}, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do resources :job_templates, :except => [:new, :edit] do (resources :locations, :only => [:index, :show]) if SETTINGS[:locations_enabled] (resources :organizations, :only => [:index, :show]) if SETTINGS[:organizations_enabled] post :clone, :on => :member collection do get 'revision' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems