(auth: Layer.Layer<ServerAuth.Config, AuthError, AuthServices>)
| 49 | } |
| 50 | |
| 51 | function makeRoutes<AuthError, AuthServices>(auth: Layer.Layer<ServerAuth.Config, AuthError, AuthServices>) { |
| 52 | const serviceLayer = AppNodeBuilder.build(applicationServices, [[SessionExecution.node, SessionExecutionLocal.node]]) |
| 53 | |
| 54 | return HttpApiBuilder.layer(Api, { openapiPath: "/openapi.json" }).pipe( |
| 55 | Layer.provide(handlers), |
| 56 | Layer.provide(sessionLocationLayer), |
| 57 | Layer.provide(locationLayer), |
| 58 | Layer.provide(authorizationLayer), |
| 59 | Layer.provide(schemaErrorLayer), |
| 60 | Layer.provide(auth), |
| 61 | Layer.provide(serviceLayer), |
| 62 | ) |
| 63 | } |
| 64 | |
| 65 | export const routes = createRoutes() |
| 66 |
no test coverage detected