pagefind_dcd{"url":"/api/route-path/","content":"routePath. import { routePath } from \"dreamkit\"; Utility function to construct a routing path along with its parameters. Definition. const routePath: (path: string, params?: Record) => string; Examples. Basic usage. import { $route, routePath, s } from \"dreamkit\"; export const userRoute = $route. .params({ id: s.number() }). .path(({ id }) => `/user/${id}`). .create(({ params }) => <>id: {params.id}); export default $route.path(\"/\").create(() => { return User 1; });","word_count":73,"filters":{},"meta":{"title":"routePath"},"anchors":[{"element":"h1","id":"_top","text":"routePath","location":0},{"element":"h2","id":"definition","text":"Definition","location":18},{"element":"h2","id":"examples","text":"Examples","location":28},{"element":"h3","id":"example_basic_usage","text":"Basic usage","location":29}]}