Sha256: 256df92434d9c1a273cbf234f6dec2500f6b62d50d1563f8c7711b94c9262512

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

#!/usr/bin/env ruby
require "thin"
require "sinatra/base"
require "glowworm/em"
require "sinatra/synchrony"

class EMServer < Sinatra::Base
  register Sinatra::Synchrony

  get "/update" do
    Glowworm.update_cache_in_foreground
    "updated!"
  end

  get "/" do
    val = Glowworm.feature_value(123, "foo")
    val.to_s
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glowworm-0.3.0 bin/em_server/em_server.rb