Skip to content

Instantly share code, notes, and snippets.

@sam
Created March 9, 2012 05:32
Show Gist options
  • Save sam/2005185 to your computer and use it in GitHub Desktop.
Save sam/2005185 to your computer and use it in GitHub Desktop.
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
@atmshop
Copy link

atmshop commented Jun 6, 2013

Atmshop
atmshop88

@atmshop
Copy link

atmshop commented Jun 6, 2013

atmshop , atmshop88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment