Sha256: f615771a511268a55cd407c9050ec0415d92b8a1d728165a823e72d4716d021a
Contents?: true
Size: 278 Bytes
Versions: 99
Compression:
Stored size: 278 Bytes
Contents
require 'sinatra' require 'rack/cache' use Rack::Cache do set :verbose, true set :metastore, 'heap:/' set :entitystore, 'heap:/' end before do last_modified $updated_at ||= Time.now end get '/' do erb :index end put '/' do $updated_at = nil redirect '/' end
Version data entries
99 entries across 75 versions & 19 rubygems