MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makeOrgApiLive

Function makeOrgApiLive

apps/cloud/src/api/layers.ts:71–76  ·  view source on GitHub ↗
(rsLive: Layer.Layer<DbService | UserStoreService>)

Source from the content-addressed store, hash-verified

69// gates on billing, so `AutumnService.Default` is provided here, not on the
70// neutral boot core.
71export const makeOrgApiLive = (rsLive: Layer.Layer<DbService | UserStoreService>) =>
72 HttpApiBuilder.layer(OrgHttpApi).pipe(
73 Layer.provide(OrgHandlers),
74 Layer.provide(orgAuthMiddleware(rsLive)),
75 Layer.provideMerge(AutumnService.Default),
76 );
77
78// Default export uses the production per-request layer. Existing callers that
79// import `NonProtectedApiLive` continue to work; the `make*` factory exists for

Callers 2

makeApiLiveFunction · 0.90
layers.tsFile · 0.85

Calls 1

orgAuthMiddlewareFunction · 0.90

Tested by

no test coverage detected