freeway icon indicating copy to clipboard operation
freeway copied to clipboard

Add * option to routes

Open averyvery opened this issue 13 years ago • 0 comments

Right now, if you wanted to write a blog with Freeway, you'd have to account for all possible URLs:

journal => blog
journal/{{post}} => blog/{{post}}
journal/category/{{category}} => blog/category/{{category}}

And this doesn't even account for pagination. Obviously, this sucks super hard — ideally, devs should be able to wildcard the remainder of a pattern to match it:

journal/* => blog/*

averyvery avatar Nov 05 '11 04:11 averyvery