Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def app.call(env)
  2. if env['PATH_INFO'][/\/backend/]
  3. Rack::Auth::Basic.new(to_app, nil) do |login,pass|
  4. pass == 'secret'
  5. end.call(env)
  6. else
  7. to_app.call(env)
  8. end
  9. end
Add Comment
Please, Sign In to add comment