mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix API route for uninstalling app. See moulinette 3cafe1dda036
This commit is contained in:
parent
ba9692e966
commit
ffd2a4967a
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ app = Sammy('#main', function (sam) {
|
|||
|
||||
sam.get('#/apps/:app/uninstall', function (c) {
|
||||
if (confirm('Are you sure you want to uninstall '+ c.params['app'] +' ?')) {
|
||||
c.api('/app/'+ c.params['app'], function() { // http://api.yunohost.org/#!/app/app_remove_delete_4
|
||||
c.api('/app?app='+ c.params['app'], function() { // http://api.yunohost.org/#!/app/app_remove_delete_4
|
||||
c.redirect('#/apps');
|
||||
}, 'DELETE');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue