You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per SvelteKit's advanced routing, directories can be contained in parenthesis (e.g. /src/routes/(group)/...) to separate groups of pages with different layouts.
These should be detected and:
if the +server.py is directly within a top-level /src/routes/(*) folder, this should be treated as the index / route.
if the +server.py is anywhere else underneath a any number of () pages, simply remove the entire section from the API endpoint URL and directory structure.
This follows the logic in the documentation linked above.
e.g.
src/routes/
│ (app)/
│ ├ +page.svelte ---> API endpoint should be: `/api`
│ ├ item/
│ └ +layout.svelte
│ └ +page.svelte
│ └ +server.py ---> API endpoint should be: `/api/item`
The text was updated successfully, but these errors were encountered:
As per SvelteKit's advanced routing, directories can be contained in parenthesis (e.g.
/src/routes/(group)/...
) to separate groups of pages with different layouts.These should be detected and:
+server.py
is directly within a top-level/src/routes/(*)
folder, this should be treated as the index/
route.()
pages, simply remove the entire section from the API endpoint URL and directory structure.This follows the logic in the documentation linked above.
e.g.
The text was updated successfully, but these errors were encountered: