-
So the downside of file-based routing is to change the route I need to rename files/directories and this is not good for GitHub history or managing multiple APIs that change in versions due to a lot of changes. I have a project that uses static file storage to store static data and adding new data requires the API version to change. Because nitro uses file base route I defined So Is there a way to configure routing prefixes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi. You can use a placeholder param name like |
Beta Was this translation helpful? Give feedback.
Hi. You can use a placeholder param name like
routes/[version]/test.ts
.