pxdr
10/10/2018, 12:02 PMheaders: {'Access-Control-Allow-Origin': '*'}
Anyone knows how to configure this properly?gbaldeck
10/10/2018, 3:02 PMproxy
configuration?pxdr
10/10/2018, 3:18 PMprivate fun <T> sendQuery(query: String, handler: (List<T>) -> Unit) {
axios<Neo4JResultList<T>>(settings(query)).then { response ->
handler(extractData(response.data))
}
}
private fun settings(path: String): AxiosConfigSettings {
return jsObject {
url = "<http://localhost:8080/movies/$path>"
method = "GET"
headers = buildHeaders()
}
}
pxdr
10/10/2018, 3:26 PMcreate-react-kotlin-app
code structure.gbaldeck
10/10/2018, 3:28 PM