refactoring schemaDocument
This commit is contained in:
1 parent
c71b8efd05
commit
50a2bfc6b9
40 files changed
+370
-370
No files matched your search
@@ -931,8 +931,8 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
|
||||
for (let k = 0; k < fileList.length; k++) {
|
||||
let name = fileList[k]
|
||||
let fileContent = fs.readFileSync(filePath + '/' + folder + '/' + name)
|
||||
let nodeDefinition = JSON.parse(fileContent)
|
||||
schemaArray.push(nodeDefinition)
|
||||
let schemaDocument = JSON.parse(fileContent)
|
||||
schemaArray.push(schemaDocument)
|
||||
}
|
||||
let schema = JSON.stringify(schemaArray)
|
||||
respondWithContent(schema, httpResponse)
|
||||
|
||||
Reference in new issue
Block a user