Nook
Prevent page from behaving like a nested route
I have the following page structure:
-
corrections
, grid
, index,
and page/[pageId]
are child routes of [auditId].vue
- duplicate
is a separate route, and should not inherit from [auditId].vue
's layout.
How do you configure Nuxt so that it behaves as described above ?
Something I considered was using the following tree structure:
1 replies
useFetch informs the the method is not available for the route
Following this thread https://discord.com/channels/473401852243869706/473406506579263488/1222265282048032872 I managed to narrow down the reproduction of the issue.
Given the following tree
and
nitro-routes.d.ts
And this code:
We receive the following error:
The reason is that /api/audits/${id}
is assignable to /api/audits/progression
and that's why only the get method is allowed.1 replies