roxiness / routify

Automated Svelte routes
https://routify.dev
1.85k stars 86 forks source link

Routing priority #555

Closed rafadess closed 2 weeks ago

rafadess commented 2 weeks ago

Hey there,

Do we have documentation on how Routify resolves ambiguous routes? For example, if I have routes like:

/food/[fruit]
/food/apple

I've noticed that apple takes priority over the slug [fruit], which makes sense to me intuitively, but I haven't found this documented anywhere.

Does anyone know where I can find this information?

jakobrosenberg commented 2 weeks ago

Thanks for pointing this out. I've updated the documentation to cover the behavior. 😊

https://routify.dev/docs/guide/introduction/parameters