With negative look-ahead:
before /^(?!\/(join|payment))/ do
# ...
end
With pass
:
before do
pass if %w[join payment].include? request.path_info.split("https://stackoverflow.com/")[1]
# ...
end
Or you could create a custom matcher.
With negative look-ahead:
before /^(?!\/(join|payment))/ do
# ...
end
With pass
:
before do
pass if %w[join payment].include? request.path_info.split("https://stackoverflow.com/")[1]
# ...
end
Or you could create a custom matcher.