From 56fe0f40d6f6399abe4106015adad472aa1cca54 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 8 Dec 2015 00:20:10 -0500 Subject: app.rb: Add a POST receiver to '/' Make the tests pass by adding a POST handler for the index route. --- app.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.rb') 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 -- cgit v1.2.3