routing { get("/foo") { call.respondWrite(ContentType.Text.Plain) { println("Response Start!\n") val writer = this val identity: RadixIdentity = EncryptedRadixIdentity("password", "dummyUser3.key") val api: RadixApplicationAPI = RadixApplicationAPI.create(identity) val myAddress: RadixAddress = api.myAddress val readable: Observable = api.getReadableData(myAddress) readable.subscribe { obsData -> val foo = String(obsData.data) writer.write(foo) } } } }