-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use different services/httpApp in the same EmberServerBuilder? #6321
Comments
You should be able to build the equivalent behavior using routers. |
Thanks @ChristopherDavenport for the response. The old code that we have is something like, using http4s v=0.18.23 and rho v=0.18.0.
and inside one of the services (accountsService) that we have follows the form as:
The goal of this is updating everything to the latest version of Rho v0.23.0-RC1 (even if it is a release candidate) and to make it work synchronizing with http4s. So we are coding something like this, using http4s v=0.23.11 and rho v=0.23.0-RC1. In the server side:
In the account service example:
But we think that using So, will you use the |
Hello guys,
We are trying to migrate an old http4s version to the current latest stable version of 0.23.11 http4s.
In the past, we were using
BlazeBuilder[IO] .mountService(notFoundHandler(accountsService.corsService), "/") .mountService(notFoundHandler(notificationService.corsService), "/notifications")
where
val corsService = CORS(service)
andval service: HttpService[IO] = new RhoService[IO]
We don't know how to mount the same structure in a EmberServerBuilder. The only way to attach services is using withHttpApp , but we don't know how to add multiples services as in the past without replacing the service. There is not a mountService function.
Any help will be appreciated. Also I can give more information.
Thanks!!!
The text was updated successfully, but these errors were encountered: