module Sinatra::Authentication
Constants
- VERSION
Public Instance Methods
require_auth(path_prefix)
click to toggle source
# File lib/sinatra/authentication.rb, line 16 def require_auth(path_prefix) before do if request.fullpath =~ /^#{path_prefix}/ require_auth end end end