You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
iiio2 commentedon Dec 8, 2025
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.
RihanArfan commentedon Mar 5, 2026
The file based route
server/routes/hello/[...name].tsis a route which matches/hello/*. You can take a look at the routing docs here https://v3.nitro.build/docs/routing#dynamic-routesLet me know if you have any questions or if there's any issue with the routing and I can reopen the issue :)