Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected def currentConfig: Future[GatewayConfiguration] = {
- (gatewayConfigurationManager ? GetGatewayConfig).mapTo[GatewayConfiguration]
- }
- val gatewayRoute: Route = (ctx: RequestContext) =>
- currentConfig.flatMap { currentConfig =>
- serviceRouteForResource(currentConfig, Config.gateway.prefix)(_.route)(ctx)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement