<@U0GCNKJF4> that will work, but it's probably eas...
# http4k
d
@pabl0rg that will work, but it's probably easier to just build up a list of routes (or route blocks) as required (ie. based on flag) and just splat it into the
routes()
call.
Copy code
fun routes(vararg list: RoutingHttpHandler): RoutingHttpHandler = AggregateRoutingHttpHandler(*list)