Minor: fix a regression introduced by a bad merge that broke the rate fix demo

This commit is contained in:
Mike Hearn 2016-03-17 13:07:19 +01:00
parent 9b102f3f17
commit 3c4ce0a8fe

View File

@ -84,7 +84,7 @@ class Node(dir: Path, val p2pAddr: HostAndPort, configuration: NodeConfiguration
// API, data upload and download to services (attachments, rates oracles etc) // API, data upload and download to services (attachments, rates oracles etc)
handlerCollection.addHandler(ServletContextHandler().apply { handlerCollection.addHandler(ServletContextHandler().apply {
contextPath = "/" contextPath = "/"
setAttribute("storage", storage) setAttribute("node", this@Node)
addServlet(DataUploadServlet::class.java, "/upload/*") addServlet(DataUploadServlet::class.java, "/upload/*")
addServlet(AttachmentDownloadServlet::class.java, "/attachments/*") addServlet(AttachmentDownloadServlet::class.java, "/attachments/*")