Sha256: 71323281e958113c17a90fade0b567ce9cb839fa63208cb08ec62f5c6e14c2d8

Contents?: true

Size: 222 Bytes

Versions: 2

Compression:

Stored size: 222 Bytes

Contents

module RedisRing

  class WebInterface < Sinatra::Base

    get "/" do
      "RedisRing is running"
    end

    get "/shards" do
      content_type :json
      Application.instance.shards_hash.to_json
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_ring-0.0.2 lib/redis_ring/web_interface.rb
redis_ring-0.0.1 lib/redis_ring/web_interface.rb