mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 03:17:06 +02:00
* feat: create folders in ACP uploads #9638 * fix: openapi * test: missing tests * fix: eslint * fix: tests
This commit is contained in:
@@ -9,3 +9,8 @@ Files.delete = async (req, res) => {
|
||||
await fs.unlink(res.locals.cleanedPath);
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Files.createFolder = async (req, res) => {
|
||||
await fs.mkdir(res.locals.folderPath);
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user