mirror of
https://github.com/jambonz/jambonz-node.git
synced 2025-12-19 05:17:49 +00:00
Update validator.js
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user