aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-08 00:20:10 -0500
committerTeddy Wing2015-12-08 00:20:10 -0500
commit56fe0f40d6f6399abe4106015adad472aa1cca54 (patch)
treed27a449984108a79d94e016e7eb20331eeb64168
parent22fe7b928b47cbbce4678e1e16311a2cd16088b8 (diff)
downloadRuby-Web-Sessions-Exercise-56fe0f40d6f6399abe4106015adad472aa1cca54.tar.bz2
app.rb: Add a POST receiver to '/'
Make the tests pass by adding a POST handler for the index route.
-rw-r--r--app.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.rb b/app.rb
index 8e51fee..5533c06 100644
--- a/app.rb
+++ b/app.rb
@@ -5,4 +5,8 @@ class App < Sinatra::Base
get '/' do
erb :index
end
+
+ post '/' do
+ 'POST works'
+ end
end