lib/jets/router/route.rb in jets-2.1.7 vs lib/jets/router/route.rb in jets-2.2.0
- old
+ new
@@ -4,10 +4,11 @@
# to: "posts#index",
# )
class Jets::Router
class Route
include Util
+ include Authorization
CAPTURE_REGEX = "([^/]*)" # as string
attr_reader :to, :as
def initialize(options, scope=Scope.new)
@@ -180,17 +181,9 @@
values = regexp.match(actual_path).captures
labels.map do |next_label|
[next_label, values.delete_at(0)]
end.to_h
- end
-
- def authorization_type
- @options[:authorization_type]
- end
-
- def api_key_required
- @options[:api_key_required]
end
private
def ensure_jets_format(path)
path.split('/').map do |s|