module ActionDispatch::Routing class Mapper # Contain built-in routes # # @example # # # config/routes.rb # # Rails.application.routes.draw do # mount_for_simple_admin # end # # @since 1.0.0 def mount_simpleadmin namespace :simple_admin do resources :entities, only: %i[index show] resources :entity_field_type_actions, only: :create resources :resources get 'resource_show_by', to: 'resources#show_by' get 'resource_show_total', to: 'resources#show_total' get 'version', to: 'versions#show' end end end end