clearwater icon indicating copy to clipboard operation
clearwater copied to clipboard

Add multi-segment matching to router

Open jgaskins opened this issue 8 years ago • 0 comments

Right now, the router cannot match on a path segment that contains a /. For example, neither of these routes can currently be matched:

  route 'foo/bar' => FooBar.new
  route 'foo/:foo_id' => FooDetail.new

If we, instead of splitting the URL path on /, match whatever comes at the beginning of it (removing the matched part to pass to subordinate routes), we would be able to handle these cases.

jgaskins avatar Jun 20 '16 17:06 jgaskins