From 2897a14869dd73152e784e938b66bf430f41372c Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Fri, 13 Apr 2018 17:49:17 +0200 Subject: [PATCH] Expose the datastore as an http endpoint --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 1ff289f64..aac8d7513 100644 --- a/server.js +++ b/server.js @@ -123,6 +123,9 @@ app.get(mainPagePattern, Express.static(__dirname + '/customize.dist')); app.use("/blob", Express.static(Path.join(__dirname, (config.blobPath || './blob')), { maxAge: DEV_MODE? "0d": "365d" })); +app.use("/datastore", Express.static(Path.join(__dirname, (config.filePath || './datastore')), { + maxAge: "0d" +})); app.use("/customize", Express.static(__dirname + '/customize')); app.use("/customize", Express.static(__dirname + '/customize.dist'));