Method: Plezi::Base::Route#match
- Defined in:
- lib/plezi/router/route.rb
#match(req_path, request = nil) ⇒ Object
59 60 61 62 |
# File 'lib/plezi/router/route.rb', line 59 def match(req_path, request = nil) # puts "#{req_path} starts with #{@prefix}? #{req_path.start_with?(@prefix)}" req_path.start_with?(@prefix) && fits_params(req_path, request) end |