nitro icon indicating copy to clipboard operation
nitro copied to clipboard

catch all route not as expected

Open sulaimon-abiola opened this issue 2 months ago • 1 comments

is there any idea why for example server/routes/hello/[...name].ts is not displaying content server/routes/hello, then I have to create an index.ts route to see server/routes/hello

sulaimon-abiola avatar Dec 04 '25 21:12 sulaimon-abiola

I think when we use [...name] then [...name] is dynamic like server/routes/hello/1,2,3 etc. If we want to get the specific content for server/routes/hello api, then we need to have index.ts which is not dynamic.

iiio2 avatar Dec 08 '25 03:12 iiio2