Sha256: c53dd05374d433f6d4bc319e8d21ca29e403ab0cd1cdbbefa2e53b07d8d72d90
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 Bytes
Contents
require 'sinatra/base' require 'web_tools' require 'web_tools/support/app_model' require 'web_tools/support/service_helper' class WebTools::Info < WebTools::Tool 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maglev-webtools-1.0.2 | lib/web_tools/info.rb |
maglev-webtools-1.0.1 | lib/web_tools/info.rb |
maglev-webtools-1.0 | lib/web_tools/info.rb |