diff options
| author | Teddy Wing | 2015-12-08 00:20:10 -0500 |
|---|---|---|
| committer | Teddy Wing | 2015-12-08 00:20:10 -0500 |
| commit | 56fe0f40d6f6399abe4106015adad472aa1cca54 (patch) | |
| tree | d27a449984108a79d94e016e7eb20331eeb64168 | |
| parent | 22fe7b928b47cbbce4678e1e16311a2cd16088b8 (diff) | |
| download | Ruby-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.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5,4 +5,8 @@ class App < Sinatra::Base get '/' do erb :index end + + post '/' do + 'POST works' + end end |
