route fix

This commit is contained in:
Kload 2013-11-22 17:56:51 +01:00
parent 98030ecc9f
commit 37949b852c

View file

@ -454,9 +454,9 @@ app = Sammy('#main', function (sam) {
sam.get('#/apps/:app/uninstall', function (c) { sam.get('#/apps/:app/uninstall', function (c) {
if (confirm('Are you sure you want to uninstall '+ c.params['app'] +' ?')) { if (confirm('Are you sure you want to uninstall '+ c.params['app'] +' ?')) {
c.api('/app', function() { // http://api.yunohost.org/#!/user/user_delete_delete_4 c.api('/app/'+ c.params['app'], function() { // http://api.yunohost.org/#!/app/app_remove_delete_4
c.redirect('#/apps'); c.redirect('#/apps');
}, 'DELETE', { 'app': c.params['app'] } ); }, 'DELETE');
} else { } else {
store.clear('slide'); store.clear('slide');
c.redirect('#/apps/'+ c.params['app']); c.redirect('#/apps/'+ c.params['app']);