From 842097df8f963a8ffd4abae48c8aafab2aaaf848 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 12 Aug 2026 13:02:24 -0700 Subject: [PATCH] Fix: Destructure APP_TEMPLATES from app-templates module export The module exports { APP_TEMPLATES, TEMPLATE_CATEGORIES, DIFFICULTY_LEVELS } but catalog/wizard were receiving the wrapper object, not the array. --- dashcaddy-api/src/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashcaddy-api/src/app.js b/dashcaddy-api/src/app.js index 4131b39..834ded4 100644 --- a/dashcaddy-api/src/app.js +++ b/dashcaddy-api/src/app.js @@ -625,14 +625,15 @@ async function createApp() { })); // DC-104: App catalog — browse curated templates + const { APP_TEMPLATES: templatesArray } = require('./docker/app-templates'); apiRouter.use(catalogRoutes({ - APP_TEMPLATES: require('./docker/app-templates'), + APP_TEMPLATES: templatesArray, asyncHandler: ctx.asyncHandler, })); // DC-105: Smart defaults wizard apiRouter.use(wizardRoutes({ - APP_TEMPLATES: require('./docker/app-templates'), + APP_TEMPLATES: templatesArray, asyncHandler: ctx.asyncHandler, }));