Hi there, check out https://nuxt.com/docs/guide/directory-structure/server#route-parameters
#Optional params don't work in /server/api
3 messages · Page 1 of 1 (latest)
Original message that I accidentally deleted:
[[...]], nor [[any]] work in /server/api folder. How can I handle all 5 CRUD requests with one file, that would match both /items and /items/:id?
I already checked those docs. So what's the point of /server/api if it doesn't follow the Nuxt dir routing structure? I'd rather just drop in a Hono (or any other standard router that works on Request, Response, Fetch and handle).
Thank you for trying to help