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