Sha256: 4b49f9ffd90a318958d0a0af2685e94daa77cbff75e2b6b4f7854dddf77de8fa

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 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_for_simple_admin
      namespace :api do
        namespace :v1 do
          namespace :simple_admin do
            resources :entities,  only: [:index, :show]
            resources :resources

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple-admin-1.1.2 lib/simple_admin/routes.rb
simple-admin-1.1.1 lib/simple_admin/routes.rb
simple-admin-1.0.1 lib/simple_admin/routes.rb
simple-admin-1.1.0 lib/simple_admin/routes.rb
simple-admin-1.0.0 lib/simple_admin/routes.rb