Sha256: 0c093e7e4a84416f500cd34f2b4c83f5106f932c8f680d1e440d36bd324dc264

Contents?: true

Size: 302 Bytes

Versions: 21

Compression:

Stored size: 302 Bytes

Contents

# encoding: utf-8
class GaptoolServer < Sinatra::Application
  post '/status/redis/llen' do
    data = JSON.parse request.body.read
    remotellen(data).to_json
  end
  post '/status/redis/lpush' do
    data = JSON.parse request.body.read
    remotelpush(data['list'], data['value']).to_json
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gaptool-server-0.4.13 lib/routes/redis.rb
gaptool-server-0.4.12 lib/routes/redis.rb
gaptool-server-0.4.11 lib/routes/redis.rb
gaptool-server-0.4.10 lib/routes/redis.rb
gaptool-server-0.4.9 lib/routes/redis.rb
gaptool-server-0.4.8 lib/routes/redis.rb
gaptool-server-0.4.7 lib/routes/redis.rb
gaptool-server-0.4.6 lib/routes/redis.rb
gaptool-server-0.4.5 lib/routes/redis.rb
gaptool-server-0.4.4 lib/routes/redis.rb
gaptool-server-0.4.3 lib/routes/redis.rb
gaptool-server-0.4.2 lib/routes/redis.rb
gaptool-server-0.4.1 lib/routes/redis.rb
gaptool-server-0.4.0 lib/routes/redis.rb
gaptool-server-0.3.8 lib/routes/redis.rb
gaptool-server-0.3.7 lib/routes/redis.rb
gaptool-server-0.3.6 lib/routes/redis.rb
gaptool-server-0.3.3 lib/routes/redis.rb
gaptool-server-0.3.2 lib/routes/redis.rb
gaptool-server-0.3.1 lib/routes/redis.rb