8000 Add multi-segment matching to router · Issue #50 · clearwater-rb/clearwater · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add multi-segment matching to router #50
Open
@jgaskins

Description

@jgaskins

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0