Sha256: 643241b8ee3addd50c028d9c95b23e5c14b015fdd577ad3b9e4bee99aed9a676

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

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: [:index, :show]
        resources :resources

        post 'verify_key' => 'credentials#verify_key'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simpleadmin-1.0.3 lib/simpleadmin/routes.rb
simpleadmin-1.0.2 lib/simpleadmin/routes.rb
simpleadmin-1.0.1 lib/simpleadmin/routes.rb
simpleadmin-1.0.0 lib/simpleadmin/routes.rb