mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] declare API for debug page in app.js
This commit is contained in:
parent
1118a3a18c
commit
40a29a6dad
1 changed files with 7 additions and 0 deletions
|
@ -1092,6 +1092,13 @@ var app = Sammy('#main', function (sam) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Get app debug page
|
||||||
|
sam.get('#/apps/:app/debug', function (c) {
|
||||||
|
c.api('/apps/'+c.params['app']+'/debug', function(data) {
|
||||||
|
c.view('app/app_debug', data);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Special case for custom app installation.
|
// Special case for custom app installation.
|
||||||
sam.get('#/apps/install/custom', function (c) {
|
sam.get('#/apps/install/custom', function (c) {
|
||||||
// If we try to GET /apps/install/custom, it means that installation fail.
|
// If we try to GET /apps/install/custom, it means that installation fail.
|
||||||
|
|
Loading…
Add table
Reference in a new issue