this one works: ``` @Test fun `should allow n...
# http4k
d
this one works:
Copy code
@Test
    fun `should allow nesting routes`() {

        val definitely = listOf(routes("/hello" bind Method.GET to { Response(OK).body("HELLO") }))
        val maybe = if (true) listOf(routes("/service/hello" bind Method.GET to { Response(OK).body("BOB") })) else emptyList()
        val routes = routes(*(definitely + maybe).toTypedArray())
        val helloResponse = routes(Request(Method.GET, "/service/hello"))

        assertEquals(helloResponse.status, OK)
    }