Add file rename

This commit is contained in:
Johannes Zellner
2020-07-09 12:59:29 +02:00
parent 38f3e39258
commit afc90817cf
3 changed files with 64 additions and 2 deletions

View File

@@ -2404,7 +2404,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.filesRename = function (appId, path, newPath, callback) {
put('/api/v1/apps/' + appId + '/files/' + path, { newFilePath: newPath }, function (error, data, status) {
put('/api/v1/apps/' + appId + '/files/' + path, { newFilePath: newPath }, {}, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));