diff --git a/src/js/client.js b/src/js/client.js index 1db80ac8d..a791a4eb1 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -525,14 +525,13 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout Client.prototype.debugApp = function (id, state, callback) { var data = { - appId: id, debugMode: state ? { readonlyRootfs: true, cmd: [ '/bin/bash', '-c', 'echo "Repair mode. Use the webterminal or cloudron exec to repair. Sleeping" && sleep infinity' ] } : null }; - post('/api/v1/apps/' + id + '/configure', data, null, function (error, data, status) { + post('/api/v1/apps/' + id + '/configure/debug_mode', data, null, function (error, data, status) { if (error) return callback(error); if (status !== 202) return callback(new ClientError(status, data));