fix(server): share router with fallback routes
This commit is contained in:
parent
56ea8a4a49
commit
f346024f0e
1 changed files with 1 additions and 1 deletions
|
|
@ -113,11 +113,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),
|
||||
)
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue