Sha256: 6f5501bfb81fd4ef3219dccb9e4f13294bd18cbb44218eb1552d614f285aef7d
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
Zendesk::AppMarket::Engine.routes.draw do namespace :api_v2, :path => 'api/v2', :module => 'v2' do scope :path => 'apps' do resources :installations, :only => [ :index, :show, :create, :update, :destroy ] resources :uploads, :only => [ :create ] resources :job_statuses, :only => [ :show ] end match 'apps/installed.:format' => 'apps#installed', :constraints => { :format => 'js' }, :via => :get, :controller => 'apps', :as => 'installed_apps' match 'apps/:id/assets/*name' => 'apps#asset', :name => /[^\/]+/, :via => :get, :as => 'asset' resources :apps, :only => [ :index, :show, :create, :update ] end resources :apps, :only => [ :new, :index, :destroy ] do get 'owned' => 'apps#owned', :on => :collection, :as => 'owned' end get 'apps/:app_id/install(.:format)' => 'installations#new', :as => 'app_install' scope :path => 'apps' do resources :installations, :only => [ :index, :create, :edit, :update, :destroy ] get 'humans.txt' => 'apps#humans', :format => 'txt', :as => 'humans_txt' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resolved-0.0.0 | config/routes.rb |