Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 266 Bytes
require 'cfwhat'
get '/' do
erb :index
end
get '/search' do
username = ENV['CF_USERNAME']
password = ENV['CF_PASSWORD']
@term = params[:term]
cfwhat = CfWhat.new(username, password, @term)
cfwhat.search
@results = cfwhat.results
erb :results
end