Fixes serving the actual configured uploads folder

This commit is contained in:
Pitu 2017-10-03 23:45:23 -03:00
parent 4b0b015c41
commit 54a262ef95

View File

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