feat: create folders in ACP uploads #9638 (#9750)

* feat: create folders in ACP uploads #9638

* fix: openapi

* test: missing tests

* fix: eslint

* fix: tests
This commit is contained in:
gasoved
2021-08-31 16:27:00 +03:00
committed by GitHub
parent f2028d7009
commit 3df79683f5
11 changed files with 200 additions and 13 deletions

View File

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