route-parser icon indicating copy to clipboard operation
route-parser copied to clipboard

OR operator (I want to handle multiple file extensions)

Open tolmasky opened this issue 7 years ago • 0 comments

Perhaps there's already a way to do this, but I was hoping for something along the line of "/path/to/:file(.js|.jsx)"

In this one specific case, I can certainly do ":file.js(x)", but in the general not same prefix extensions, would love to know the best way to tackle this without creating two almost identical routes.

tolmasky avatar Nov 15 '17 18:11 tolmasky