Sha256: 5afae8abd5dcdcc670eb00f3e84638e00a658423c09a978c7f741098e21f130e
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
AssetHostCore::Engine.routes.draw do match '/i/:aprint/:id-:style.:extension', :to => 'public#image', :as => :image, :constraints => { :id => /\d+/, :style => /[^\.]+/} namespace :api do resources :assets, :id => /\d+/, defaults: { format: :json } do member do get 'r/:context/(:scheme)', :action => :render get 'tag/:style', :action => :tag end end resources :outputs, defaults: { format: :json } end namespace :a, :module => "admin" do resources :assets, :id => /\d+/ do collection do get '/search(/:q)', action: 'search', as: "search" get '/p/(:page)', action: 'index' get '/p/:page/:q', action: 'search' post :upload get :metadata put :metadata, :action => "update_metadata" end member do get :preview post :replace end end resources :outputs resources :api_users do put 'reset_token', on: :member, as: :reset_token end match 'chooser', :to => "home#chooser", :as => 'chooser' root :to => "assets#index" end root :to => "public#home" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asset_host_core-2.0.0.beta | config/routes.rb |