filemanager: fix new folder api call

This commit is contained in:
Johannes Zellner
2024-09-28 20:27:59 +02:00
parent 813942edbd
commit 40e7ee91d7
+1 -1
View File
@@ -111,7 +111,7 @@ export function createDirectoryModel(origin, accessToken, api) {
await this.save(filePath, '');
},
async newFolder(folderPath) {
await fetcher.post(`${origin}/api/v1/${api}/files/${folderPath}`, { access_token: accessToken, directory: true });
await fetcher.post(`${origin}/api/v1/${api}/files/${folderPath}`, { directory: true }, { access_token: accessToken });
},
async remove(filePath) {
await fetcher.del(`${origin}/api/v1/${api}/files/${filePath}`, { access_token: accessToken });