Skip to content

Commit

Permalink
add a root url
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Sep 6, 2011
1 parent 35bddc2 commit 0f8c742
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
require "open-uri"

class FetchTweets < Sinatra::Base
get '/' do
"Hello World"
end

get '/:user' do
open("http://search.twitter.com/search.json?q=#{params[:user]}")
end
Expand Down

0 comments on commit 0f8c742

Please sign in to comment.