kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

Limitation range for optional parameters #96

Open SihirliDev opened 6 months ago

SihirliDev commented 6 months ago

Hello,

I have configured my routes under routes/($lang) folder.

Now I can access my site at www.mysite.com/en/.... or www.mysite.com/de/....

However it also responds to anything other than locales as expected like www.mysite.com/blablabla

Is there a workaround to limit the lang parameter only for these two languages and throw a 404 otherwise?

Thank you!