Skip to content

Commit e086e7f

Browse files
committed
no-mistakes(document): Updated docs/features/own-your-codegen.md: apiDocsFile now also honours routesFile filter. CHANGELOG Unreleased entry already covered the change. No other stale docs found.
1 parent 43dcdf6 commit e086e7f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎docs/features/own-your-codegen.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,8 @@ rather than off this page; its own JSDoc carries the recipe with the right one.)
741741
Both are executed as tests (`runtime-ts/test/route-auth-seam.test.ts`) rather than
742742
asserted in prose. For mounting *fewer* endpoints, narrow the generator:
743743
`routesFile({ expose: ["list", "get"] })` (`apiDocsFile()` reads the option per routes surface, Fastify
744-
and Hono apart, and documents only the verbs that surface mounts; a copy ejected before 1.1.0
744+
and Hono apart, and documents only the verbs that surface mounts; `routesFile({ filter })` removes
745+
the entities it rejects from the pages altogether; a copy ejected before 1.1.0
745746
needs `meta eject routes --force` to be honoured). To register every entity's routes in one call,
746747
pass `registerAll: true`: the generator also emits `routes.index.ts` (or
747748
`routes.index.hono.ts`) with a `registerAllRoutes(...)`, so adding an entity needs no edit

0 commit comments

Comments
 (0)