(rsLive: Layer.Layer<DbService | UserStoreService>)
| 69 | // gates on billing, so `AutumnService.Default` is provided here, not on the |
| 70 | // neutral boot core. |
| 71 | export 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 |
no test coverage detected