From 40a29a6dadcb880c37f1872b0e1fe923a6cdc838 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 2 Oct 2015 21:13:22 -0400 Subject: [PATCH] [enh] declare API for debug page in app.js --- src/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/app.js b/src/js/app.js index 932a1e0e..abf2e7d1 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -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. sam.get('#/apps/install/custom', function (c) { // If we try to GET /apps/install/custom, it means that installation fail.