Merge branch 'develop' of https://github.com/AAMasters/BackendServers into develop
This commit is contained in:
commit
a877106c09
1 file changed
+14
-3
+14
-3
@@ -458,10 +458,11 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
{
|
||||
const fs = require('fs')
|
||||
let folder
|
||||
let includedNames = {
|
||||
let includedNames = {
|
||||
includedDataMines: [],
|
||||
includedTradingSystems: [],
|
||||
includedSuperScripts: []
|
||||
includedSuperScripts: [],
|
||||
includedTradingEngines: []
|
||||
}
|
||||
|
||||
folder = process.env.DATA_MINES_PATH + '/'
|
||||
@@ -473,7 +474,11 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
folder = process.env.SUPER_SCRIPTS_PATH + '/'
|
||||
fs.readdir(folder, (err, files) => {
|
||||
includedNames.includedSuperScripts = files
|
||||
respondWithContent(JSON.stringify(includedNames), response)
|
||||
folder = process.env.TRADING_ENGINES_PATH + '/'
|
||||
fs.readdir(folder, (err, files) => {
|
||||
includedNames.includedTradingEngines = files
|
||||
respondWithContent(JSON.stringify(includedNames), response)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -617,6 +622,12 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
}
|
||||
break
|
||||
|
||||
case 'TradingEngines':
|
||||
{
|
||||
respondWithFile(process.env.TRADING_ENGINES_PATH + '/' + requestParameters[2], response)
|
||||
}
|
||||
break
|
||||
|
||||
case 'Storage':
|
||||
{
|
||||
respondWithFile(process.env.STORAGE_PATH + '/' + request.url.substring(9), response)
|
||||
|
||||
Reference in new issue
Block a user