Folder creation is a query arg not body param
This commit is contained in:
@@ -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}`, { directory: true }, { access_token: accessToken });
|
||||
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 });
|
||||
|
||||
Reference in New Issue
Block a user