Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/simpleadmin/routes.rb

Instance Method Summary collapse

Instance Method Details

#mount_simpleadminObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/simpleadmin/routes.rb', line 3

def mount_simpleadmin
  namespace :simple_admin do
    resources :entities, only: %i[index show]
    resources :entity_field_type_actions, only: :create

    resources :resources do
      get :show_by,    on: :collection
      get :show_total, on: :collection
    end

    get 'version', to: 'versions#show'
  end
end