Sha256: 5148309eefd566391426b9d39ad5e0433268d4a9a8c26ad4aaf533956f0ce461

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 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

3 entries across 3 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 config/routes.rb
redis_web_manager-0.3.9 config/routes.rb
redis_web_manager-0.3.8 config/routes.rb