Created
March 9, 2012 05:32
-
-
Save sam/2005185 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Petshop < Harbor::Application | |
class Home < Harbor::Controller | |
get "/" do | |
# If the block doesn't return true, the request is immediately halted and you're given a 403. | |
basic_auth { |username, password| [ username, password ] == [ "sam", "harbor" ] } | |
puts "Hello World!" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Atmshop
atmshop88