Skip to content

ExpressOptions

Defined in: express.ts:17

optional batch?: boolean | { maxSize?: number; path?: string; }

Defined in: express.ts:28

Mount a batch endpoint (default POST /batch) dispatching a BatchCall[] body through app.batch() — every call runs its service’s full hook pipeline. On by default; false disables it, an object overrides the route path or max batch size (default 25).


optional cors?: boolean | CorsOptions

Defined in: express.ts:34

Enable CORS via the cors npm package. true resolves to permissive defaults (reflects Origin, allows the CRUD verbs, no credentials); pass a CorsOptions object to customize origin/methods/headers/credentials. Disabled (no CORS headers) by default.


optional introspection?: boolean | { path?: string; }

Defined in: express.ts:22

Mount an introspection endpoint (default GET /_services) returning a ServiceDescriptor[] for every registered service. Off by default.