Skip to content

Commit

Permalink
support canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Oct 18, 2011
1 parent 2ab1863 commit dcd25fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.rb
Expand Up @@ -75,6 +75,11 @@ def first_column(item, collection)
erb :index
end

# used by Canvas apps - redirect the POST to be a regular GET
post "/" do
redirect "/"
end

# used to close the browser window opened to post to wall/send to friends
get "/close" do
"<body onload='window.close();'/>"
Expand Down

0 comments on commit dcd25fb

Please sign in to comment.