mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #2 from jeromelebleu/master
Fix #/apps/refresh route
This commit is contained in:
commit
9e19d243bd
1 changed files with 6 additions and 6 deletions
12
js/app.js
12
js/app.js
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue