Sha256: acb7a5dac321a4faeba9508971ae72a60c3aa66a10147e6d86895c296b70ccda

Contents?: true

Size: 836 Bytes

Versions: 7

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

RedisWebManager::Engine.routes.draw do
  redises_keys = RedisWebManager.redises.keys
  scope ':instance', instance: /#{redises_keys.join('|')}/ do
    # Configuration
    get :configuration, to: 'configuration#index'

    # Information
    get :information, to: 'information#index'

    # Dashboard
    get :dashboard, to: 'dashboard#index'

    # Keys
    get 'keys' => 'keys#index'
    get 'key' => 'keys#show'
    get 'key/edit' => 'keys#edit', as: :edit_key
    put 'keys' => 'keys#update', as: :update_key
    delete 'keys' => 'keys#destroy', as: :destroy_key

    # Clients
    get :clients, to: 'clients#index'

    # Actions
    delete :reset, to: 'actions#reset'
    delete :flushdb, to: 'actions#flushdb'
    delete :flushall, to: 'actions#flushall'
  end

  # Root
  root 'dashboard#index'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redis_web_manager-0.3.6 config/routes.rb
redis_web_manager-0.3.5 config/routes.rb
redis_web_manager-0.3.4 config/routes.rb
redis_web_manager-0.3.3 config/routes.rb
redis_web_manager-0.3.2 config/routes.rb
redis_web_manager-0.3.1 config/routes.rb
redis_web_manager-0.3.0 config/routes.rb