Sha256: f9b16f8ff864088addb444b18989e495f70f9be837530452f8593b77d7f2f5f7

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

require 'modules/helpers'
require 'modules/controllers'

module RedisMonitor
  module Router
    include RedisMonitor::Controllers

    def self.included(server)
      server.get('/'){ redirect '/info' }
      server.get('/info'){ InfoController.new(context: self).execute(:index, params) }

      server.get('/content'){ ContentController.new(context: self).execute(:index, params) }
      server.get('/content/search'){ ContentController.new(context: self).execute(:search, params) }

      server.get('/performance'){ redirect '/performance/warning' }
      server.get('/performance/warning'){ PerformanceController.new(context: self).execute(:warning, params) }
      server.get('/performance/check'){ PerformanceController.new(context: self).execute(:check, params) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_monitor-0.0.5 lib/modules/router.rb