pub fn router<S: WorkflowStore + 'static>(state: Arc<AppState<S>>) -> RouterExpand description
Build the full API router.
Three tiers:
- Authenticated
/api/v1/*— workflows, schedules, namespaces, activities, tasks, workers, queues, api-keys, events, meta/version. Gated byauth::auth_middlewarewhen an auth mode is enabled. - Public
/api/v1/*— health, version. Always unauthenticated so Kubernetes probes, load balancers, and third-party monitors can reach them without a bearer token. - Dashboard + OpenAPI — HTML/JSON at the root. Always public.