diff --git a/src/main/kotlin/core/node/Node.kt b/src/main/kotlin/core/node/Node.kt index 9f8fcb78c5..9c0546e7a5 100644 --- a/src/main/kotlin/core/node/Node.kt +++ b/src/main/kotlin/core/node/Node.kt @@ -84,7 +84,7 @@ class Node(dir: Path, val p2pAddr: HostAndPort, configuration: NodeConfiguration // API, data upload and download to services (attachments, rates oracles etc) handlerCollection.addHandler(ServletContextHandler().apply { contextPath = "/" - setAttribute("storage", storage) + setAttribute("node", this@Node) addServlet(DataUploadServlet::class.java, "/upload/*") addServlet(AttachmentDownloadServlet::class.java, "/attachments/*")