From 33822983d623143b086ccfe3dfeb33225ba17918 Mon Sep 17 00:00:00 2001 From: Thomas Boutell Date: Fri, 13 Sep 2024 14:05:28 -0400 Subject: [PATCH] route to obtain frontend bundles --- modules/asset/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/asset/index.js b/modules/asset/index.js index bce18f88..4367afc9 100644 --- a/modules/asset/index.js +++ b/modules/asset/index.js @@ -7,5 +7,22 @@ module.exports = { } } }; + }, + apiRoutes(self) { + return { + get: { + bundleMarkup(req) { + let content = 'scripts\nstylesheets'; + content = self.apos.template.insertBundlesMarkup({ + scene: 'public', + content, + scriptsPlaceholder: 'scripts', + stylesheetsPlaceholder: 'stylesheets', + widgetsBundles: {} + }); + return content; + } + } + }; } };