N
Nuxt8mo 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
server\api\organisations\[organisationId].patch.ts
and
server\api\organisations\[organisationId]\index.patch.ts
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
No description
2 Replies
Cake
Cake8mo ago
was this fixed?
Wazbat
WazbatOP8mo ago
Yeah, seems like compiling my app fixed it?
Want results from more Discord servers?
Add your server