Fix #/apps/refresh route

This commit is contained in:
Jérôme Lebleu 2013-11-26 18:22:12 +01:00
parent df52f2d247
commit d94d4411d2

View file

@ -446,6 +446,12 @@ app = Sammy('#main', function (sam) {
});
});
sam.get('#/apps/refresh', function (c) {
c.api('/app/lists', function(data) { // http://api.yunohost.org/#!/app/app_fetchlist_put_5
c.redirect(store.get('path'));
}, 'PUT');
});
sam.get('#/apps/:app', function (c) {
c.api('/app/'+c.params['app']+'?raw=true', function(data) { // http://api.yunohost.org/#!/app/app_info_get_9
c.view('app_info', data);
@ -478,12 +484,6 @@ app = Sammy('#main', function (sam) {
c.redirect('#/apps/'+ c.params['app']);
}
});
sam.get('#/apps/refresh', function (c) {
c.api('/app/lists', function(data) { // http://api.yunohost.org/#!/app/app_fetchlist_put_5
c.redirect(store.get('path'));
}, 'PUT');
});
});