Created
May 20, 2015 18:44
-
-
Save rafaelgaspar/6bf68cd21ba2b737c0f6 to your computer and use it in GitHub Desktop.
A simple sinatra app that answers to everything and opens up a debugger.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
%w{sinatra byebug}.each { |g| require g } | |
%w{get post put patch delete}.each { |m| send(m, '*') { debugger } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment