Expose the datastore as an http endpoint

This commit is contained in:
Caleb James DeLisle 2018-04-13 17:49:17 +02:00
parent bc35c3349f
commit 2897a14869
1 changed files with 3 additions and 0 deletions

View File

@ -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'));