Skip to content

fallthough doesn't catch all #5423

Discussion options

You must be logged in to vote

Maybe you should try to replace [fallthough].svelte with [...fallthough].svelte in order to catch subsequent paths.
If it's what you meant:

routes
| - api
|    | - [a].svelte
|    | - [...b].svelte

[a].svelte Will only catch paths like /api/something, /api/blabla... but will not catch sub paths like /api/test/test
Whereas [...b] will catch all paths that start with /api/ (in this example paths like /api/something will be firstly pass to [a].svelte before [...b].svete) so [...b] will catch paths like /api/sub/path/test (If I correctly understood the docs).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@PlopTheReal
Comment options

Comment options

You must be logged in to vote
1 reply
@PlopTheReal
Comment options

Answer selected by PlopTheReal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants