Module: Roda::RodaPlugins::HashRoutes::RequestMethods

Defined in:
lib/roda/plugins/hash_routes.rb

Instance Method Summary collapse

Instance Method Details

#hash_routes(namespace = matched_path) ⇒ Object

Check for matches in both the hash_path and hash_branch namespaces for a matching remaining path or next segment in the remaining path, respectively.



295
296
297
298
# File 'lib/roda/plugins/hash_routes.rb', line 295

def hash_routes(namespace=matched_path)
  hash_paths(namespace)
  hash_branches(namespace)
end