Update validator.js

This commit is contained in:
Sam Machin
2025-07-08 09:09:48 +01:00
parent 083d9329f1
commit 7d1807375b

View File

@@ -14,6 +14,7 @@ const schema = JSON.parse(fs.readFileSync(schemaPath, 'utf8'));
* @returns {Object} - Result with { success: boolean, config: Object, error: string } * @returns {Object} - Result with { success: boolean, config: Object, error: string }
*/ */
function getAppConfig({ urlPath, appJsonPath }) { function getAppConfig({ urlPath, appJsonPath }) {
if (urlPath.length == 0 ) urlPath = "/";
try { try {
if (!appJsonPath) { if (!appJsonPath) {
return { return {