From ecfd1ce8366b4aae0f79e6bb955930e961f99792 Mon Sep 17 00:00:00 2001 From: Pierre Burgy Date: Fri, 21 Oct 2016 14:15:18 +0200 Subject: [PATCH] Fix plugins routes in admin file generator --- controllers/Admin.js | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/controllers/Admin.js b/controllers/Admin.js index c340ff76b9..14923d1dca 100644 --- a/controllers/Admin.js +++ b/controllers/Admin.js @@ -22,21 +22,23 @@ module.exports = { // Use `cheerio` to parse the HTML string const parsedHTML = $.load(htmlString); - // // Some plugins are ignored - // const ignoredPlugins = ['admin', 'user']; - // - // // Inject `js` files from plugins builds in the main admin panel - // _.forEach(strapi.api, (value, pluginName) => { - // if (!_.includes(ignoredPlugins, pluginName)) { - // // Main plugin `js` file - // const pluginMainScript = $('