Skip to content

Allow slashes in path params #1106

Description

@GamerGirlandCo

this has been brought up in previous (closed) issues such as #174 and #566.

there are some situations where this could be useful. an example would be a filesystem browser + editor, with routes that correspond to the file's path like so:

  • GET /files/{path:*}/edit
  • DELETE /files/{path:*}/delete
  • POST /files/{path:*}/upload

path:* would match 0 or more path segments, meaning the following urls are valid:

  • /files/one/two/three/four/edit
  • /files/foo/bar.txt/edit
  • /files/upload

i'm willing to open a PR to implement this.

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