http/common_routes.ts view source
(): RouteSpec Create a public health check route spec.
Infrastructure endpoint for uptime monitors and load balancers.
Bootstrap availability is exposed via /api/account/status instead.
returns
RouteSpec Common route spec factories for fuz_app consumers.
Generic HTTP route factories with no auth-domain dependencies. Auth-aware route factories (account status) live in auth/account_routes.ts.
5 declarations
http/common_routes.ts view source
(): RouteSpec Create a public health check route spec.
Infrastructure endpoint for uptime monitors and load balancers.
Bootstrap availability is exposed via /api/account/status instead.
RouteSpec http/common_routes.ts view source
(options: ServerStatusOptions): RouteSpec Create an authenticated server status route spec.
Returns version and uptime. Unlike the public health check, this requires authentication.
optionsRouteSpec http/common_routes.ts view source
(options: SurfaceRouteOptions): RouteSpec Create an authenticated route spec that serves the AppSurface as JSON.
Surface data reveals API structure (routes, auth, schemas), so this requires authentication like the server status route.
optionsRouteSpec http/common_routes.ts view source
ServerStatusOptions Options for the authenticated server status route.
versionApplication version string.
stringget_uptime_msReturns milliseconds since server start.
() => numberhttp/common_routes.ts view source
SurfaceRouteOptions Options for the surface explorer route.
surfaceThe generated app surface to serve.