MCPcopy
hub / github.com/wasp-lang/wasp / route

Function route

waspc/data/packages/spec/src/spec/publicApi/constructors.ts:119–130  ·  view source on GitHub ↗
(
  name: Route["name"],
  path: Route["path"],
  /**
   * @remarks
   * This should be the result of the `page()` function.
   */
  page: Route["page"],
  config?: RouteConfig,
)

Source from the content-addressed store, hash-verified

117 * @category Constructors
118 */
119export function route(
120 name: Route["name"],
121 path: Route["path"],
122 /**
123 * @remarks
124 * This should be the result of the `page()` function.
125 */
126 page: Route["page"],
127 config?: RouteConfig,
128): Route {
129 return { kind: "route", name, path, page, ...config };
130}
131
132/**
133 * @inline

Callers 15

main.wasp.tsFile · 0.90
main.wasp.tsFile · 0.90
main.wasp.tsFile · 0.90
auth.wasp.tsFile · 0.90
chat.wasp.tsFile · 0.90
jobs.wasp.tsFile · 0.90
apis.wasp.tsFile · 0.90
streaming.wasp.tsFile · 0.90
prerender.wasp.tsFile · 0.90
crud.wasp.tsFile · 0.90
operations.wasp.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

getRouteFunction · 0.68
getEmailVerifyRouteFunction · 0.68
getPasswordResetRouteFunction · 0.68