config/routes.rb in daengine-0.5.13 vs config/routes.rb in daengine-0.6
- old
+ new
@@ -1,9 +1,9 @@
Rails.application.routes.draw do
- match 'digital_assets/search' => 'digital_assets#search'
- match 'digital_assets/fund_docs' => 'digital_assets#fund_docs'
- # post "digital_assets/sync" => 'digital_assets#sync_assets'
- # match 'digital_assets/:id' => 'digital_assets#sami' #, :id => /\w{4,8}.\d*/
- resources :digital_assets, :only => [:index, :show]
- #resources :digital_assets
- #get 'digital_assets' => 'digital_asset#index'
+ resources :digital_assets, except: [:new, :edit], defaults: {format: 'json'} do
+ collection do
+ get 'fund_docs'
+ get 'search', to: 'digital_assets#search'
+ post 'updated_time'
+ end
+ end
end