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

Function makeOrgApiLive

apps/cloud/src/api/layers.ts:85–92  ·  view source on GitHub ↗
(
  rsLive: Layer.Layer<DbService | UserStoreService | MemberDirectory | WorkOsMirror>,
)

Source from the content-addressed store, hash-verified

83// gates on billing, so `AutumnService.Default` is provided here, not on the
84// neutral boot core.
85export const makeOrgApiLive = (
86 rsLive: Layer.Layer<DbService | UserStoreService | MemberDirectory | WorkOsMirror>,
87) =>
88 HttpApiBuilder.layer(OrgHttpApi).pipe(
89 Layer.provide(OrgHandlers),
90 Layer.provide(orgAuthMiddleware(rsLive)),
91 Layer.provideMerge(AutumnService.Default),
92 );
93
94// Default export uses the production per-request layer. Existing callers that
95// 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