server/zzz_route_specs.ts

Shared zzz route spec factory.

Used by the production server, integration tests, and attack surface helpers. Does NOT include bootstrap routes (factory-managed by create_app_server).

Declarations
#

3 declarations

view source

build_rpc_endpoint_specs
#

server/zzz_route_specs.ts view source

(ctx: AppServerContext, zzz_deps: ZzzRpcDeps): RpcEndpointSpec[]

Build the /api/rpc endpoint spec(s) for create_app_server.

Pass to rpc_endpoints as a factory — closes over ctx.deps + ctx.app_settings for the standard admin + role-grant-offer + account action set. create_app_server auto-mounts each entry via create_rpc_endpoint.

ctx

type AppServerContext

zzz_deps

returns

RpcEndpointSpec[]

create_zzz_app_route_specs
#

server/zzz_route_specs.ts view source

(ctx: AppServerContext, zzz_deps: ZzzAppRouteDeps): RouteSpec[]

Build all zzz route specs.

Used by production server, integration tests, and attack surface helpers. Does NOT include bootstrap routes (those are factory-managed by create_app_server).

Does NOT include the /api/rpc endpoint — create_app_server auto-mounts every RpcEndpointSpec passed via rpc_endpoints. Consumers supply that endpoint spec through build_rpc_endpoint_specs below.

ctx

type AppServerContext

zzz_deps

returns

RouteSpec[]

ZzzAppRouteDeps
#

server/zzz_route_specs.ts view source

ZzzAppRouteDeps

zzz-specific deps not available in AppServerContext.

zzz

version

type string

get_uptime_ms

type () => number

audit_sse

Audit log SSE stream config.

type AuditLogRouteOptions['stream']

Depends on
#

Imported by
#