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