What to build
Implement the route scanner that reads the file system (or a provided file map) and converts file paths under /src/routes/ into URL patterns.
Conventions:
routes/index.tsx → /
routes/about.tsx → /about
routes/blog/index.tsx → /blog
routes/blog/[slug].tsx → /blog/:slug
routes/products/[category]/[id].tsx → /products/:category/:id
Returns an array of route entries with the URL pattern, param names, and reference to the source file path.
Acceptance criteria
Blocked by
What to build
Implement the route scanner that reads the file system (or a provided file map) and converts file paths under
/src/routes/into URL patterns.Conventions:
routes/index.tsx→/routes/about.tsx→/aboutroutes/blog/index.tsx→/blogroutes/blog/[slug].tsx→/blog/:slugroutes/products/[category]/[id].tsx→/products/:category/:idReturns an array of route entries with the URL pattern, param names, and reference to the source file path.
Acceptance criteria
[param]segments into named parametersindex.tsxas the directory root.tsx)Blocked by