I'm trying to get the displayed route structure working in my
server/api
server/api
directory, but nuxt (or in this case nitro) seems to be unable to resolve routes with multiple dynamic parameters.
WARN [Vue Router warn]: No match found for location with path "/api/projects/5/apps"
WARN [Vue Router warn]: No match found for location with path "/api/projects/5/apps"
I have found an issue talking about this problem on GitHub (https://github.com/nuxt/nuxt/issues/24040), and they seem to have found a solution for their use-case, but I am unsure if I could apply something similar.
The docs (https://nuxt.com/docs/guide/directory-structure/server#server-routes) are mentioning this as well, but it's quite incomprehensible as to what exactly the limiting factors are. This sort of directory structure is working perfectly fine for routing pages, so I'm a tad confused as to why this wouldn't be working for server routes.
I'd appreciate any sort of idea as for how to fix or workaround this issue. Reworking the directory structure might work as well, but seems disadvantageous, as the current structure would be the proper convention.