Skip to content

r.httpRoute(...)

r.httpRoute(definition) — mounts an HTTP route owned by the feature, outside the dispatcher pipeline (not under /api/write|query|batch) — for RSS/Atom feeds, OG images, OpenAPI specs and similar. Duplicate method+path pairs are rejected per feature at setup time; nothing checks across features.


From packages/framework/src/engine/feature-ast/patterns.ts -> HttpRoutePattern