Sha256: c587ceec764657d451cafb6b6b47701d5409c5bbaee7a7f8497db0d48fdb77cd
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
require 'sinatra/base' require 'web_tools' require 'web_tools/support/app_model' require 'web_tools/support/service_helper' class WebTools::Info < Sinatra::Base include WebTools::Support::ServiceHelper before do @ts = Time.now @stack = nil @model = WebTools::AppModel.new end get '/version' do content_type :json prepare_data @model.version_report end get '/sessions' do content_type :json prepare_data @model.session_report end get '/tools' do content_type :json prepare_data(@model.tools) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maglev-webtools-0.2.1 | lib/web_tools/info.rb |