Skip to content

Instantly share code, notes, and snippets.

@sr
Created January 31, 2009 14:30
Show Gist options
  • Save sr/55557 to your computer and use it in GitHub Desktop.
Save sr/55557 to your computer and use it in GitHub Desktop.
use Rack::Auth::Basic do |username,password|
password == 'secret'
end
get '/' do
"welcome in the secret zone"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment