From 54a262ef95ccb6d587e9e845bc96f78775381287 Mon Sep 17 00:00:00 2001 From: Pitu <7425261+Pitu@users.noreply.github.com> Date: Tue, 3 Oct 2017 23:45:23 -0300 Subject: [PATCH] Fixes serving the actual configured uploads folder --- lolisafe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lolisafe.js b/lolisafe.js index 33daf4e..61a95ec 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -32,7 +32,7 @@ safe.use(bodyParser.urlencoded({ extended: true })); safe.use(bodyParser.json()); if (config.serveFilesWithNode) { - safe.use('/', express.static('./uploads')); + safe.use('/', express.static(config.uploads.folder)); } safe.use('/', express.static('./public'));