Skip to content

Suport optinal middle segment #250

@GoldraK

Description

@GoldraK

Hello,
They could accept this PR (#179), it would be very useful for example to create file managers, not forcing to always have a path from the base path.

In the current situation the url would have to be like this

/file/{path:[A-Za-z0-9\/]+}/{file:[\w,\s-]+\.[A-Za-z]{3,4}}

with this expression I can make these routes

files/mandatory-folder/file.jpg
files/obligatory-folder/another-folder/file.jpg

but i can't do

files/file.jpg

since path is always required.

Thanks for the work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions