Merge pull request #2 from jeromelebleu/master

Fix #/apps/refresh route
This commit is contained in:
Alexis Gavoty 2013-11-26 09:46:02 -08:00
commit 9e19d243bd

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) { 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.api('/app/'+c.params['app']+'?raw=true', function(data) { // http://api.yunohost.org/#!/app/app_info_get_9
c.view('app_info', data); c.view('app_info', data);
@ -478,12 +484,6 @@ app = Sammy('#main', function (sam) {
c.redirect('#/apps/'+ c.params['app']); 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');
});
}); });