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.3.0 lib/routes/redis.rb