From 37949b852c33c30b8ee1c3f084cb62ca6d0b363a Mon Sep 17 00:00:00 2001 From: Kload Date: Fri, 22 Nov 2013 17:56:51 +0100 Subject: [PATCH] route fix --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 0ad0cae0..d2d022bc 100644 --- a/js/app.js +++ b/js/app.js @@ -454,9 +454,9 @@ 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', 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'); - }, 'DELETE', { 'app': c.params['app'] } ); + }, 'DELETE'); } else { store.clear('slide'); c.redirect('#/apps/'+ c.params['app']);