fix(server): share router with fallback routes

This commit is contained in:
Brendan Allan
2026-07-17 09:37:30 +00:00
parent c5d1a9d285
commit 119eef98a6
+1 -1
View File
@@ -108,11 +108,11 @@ function makeRoutes<AuthError, AuthServices>(
Layer.provide(Observability.layer),
HttpRouter.provideRequest(requestServices),
Layer.provideMerge(services),
Layer.provideMerge(HttpRouter.layer),
)
return Layer.merge(apiRoutes, apiNotFoundRoute(corsOptions)).pipe(
Layer.provide(cors(corsOptions)),
Layer.provide(Layer.succeed(CorsConfig)(corsOptions)),
Layer.provideMerge(HttpRouter.layer),
)
}),
)