Поправлена отдача статики
This commit is contained in:
@@ -189,9 +189,7 @@ function initStatic(app, config) {
|
||||
return next();
|
||||
}
|
||||
|
||||
if (path.extname(req.path) == '.json')
|
||||
return next();
|
||||
|
||||
if (path.extname(req.path) == '') {
|
||||
const bookFile = `${config.publicFilesDir}${req.path}`;
|
||||
const bookFileDesc = `${bookFile}.json`;
|
||||
|
||||
@@ -215,6 +213,7 @@ function initStatic(app, config) {
|
||||
|
||||
if (downFileName)
|
||||
res.downFileName = downFileName;
|
||||
}
|
||||
|
||||
return next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user