Rails.application.routes.draw do 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