Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. protected def currentConfig: Future[GatewayConfiguration] = {
  2. (gatewayConfigurationManager ? GetGatewayConfig).mapTo[GatewayConfiguration]
  3. }
  4.  
  5. val gatewayRoute: Route = (ctx: RequestContext) =>
  6. currentConfig.flatMap { currentConfig =>
  7. serviceRouteForResource(currentConfig, Config.gateway.prefix)(_.route)(ctx)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement