Replies: 1 comment 6 replies
-
Yes, using rest parameters (https://kit.svelte.dev/docs#routing-advanced-rest-parameters), you can check if it ends with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pretty much the title. AFAIK, I have to create two files to catch aforementioned routes:
index.json
incars/
[id].json
incars/
Is there another way where I can put all in one file (where I would distinguish request based on given params)?
Beta Was this translation helpful? Give feedback.
All reactions