Sha256: a8b5fff9ccea3e34641e86d7886cde5083992921cfc4ffa1ee95226995f54300

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 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) }

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

Version data entries

1 entries across 1 versions & 1 rubygems

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