8 lines
179 B
JavaScript
8 lines
179 B
JavaScript
function modifyPath(req, res, next) {
|
|
if (req.body && req.body.path) {
|
|
req.body.path = '../../../' + req.body.path;
|
|
}
|
|
next();
|
|
}
|
|
|
|
module.exports = modifyPath; |