Created
August 24, 2017 07:53
-
-
Save dongyuwei/db1c6e4bbeab4b5ea45ccb0272da14f9 to your computer and use it in GitHub Desktop.
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
admin_constraint = lambda do |request| | |
request.env['warden'].authenticate? and not request.env['warden'].user.nil? | |
end | |
constraints admin_constraint do | |
mount Logster::Web, at: "/logs" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mount logster in routes.rb
logster