NuxtN
Nuxt2y ago
Wazbat

Nuxt not detecting patch route

I've created a route with a path param, however no matter how I structure it and restart my vue/tsc server, it appears to not detect the route

I've tried structuring the route as
server\api\organisations\[organisationId].patch.ts

and
server\api\organisations\[organisationId]\index.patch.ts

Regardless of what name I pick, I still get the same Type '"PATCH"' is not assignable to type '"get" | "GET" | undefined'. error
image.png
Was this page helpful?