[]previous and next page

RouteInfo

Which kind of route answered a request.

Which kind of route answered a request.

Import#

ts
import type { RouteInfo } from "@shadow-js/dusk/server";

Signature#

ts
interface RouteInfo {
  readonly kind: "none" | "page" | "api" | "rpc" | "stream";
  /** Route id for pages and API routes, server function id for RPC. */
  readonly id: string | undefined;
  readonly params: Readonly<Record<string, string>>;
}

Members#

Name Type Description
kind readonly kind: "none" | "page" | "api" | "rpc" | "stream"
id readonly id: string | undefined Route id for pages and API routes, server function id for RPC.
params readonly params: Readonly<Record<string, string>>