Commit b5ade1d6 authored by tywldx's avatar tywldx

fix

parent c936ea5a
......@@ -348,6 +348,8 @@ if (param["type"] == "") {
str += " " + F.getProjectsAttrs(python_projects, param["attr"], param["attr2"]);
str += " " + F.getProjectsAttrs(node_projects, param["attr"], param["attr2"]);
console.log(str)
} else if (param["type"] == "hosts") {
console.log(JSON.stringify(hosts));
} else {
F.getProjectsAttr(param["type"], param["attr"]);
}
......@@ -53,6 +53,13 @@ admin.get('/get_project_attr/:name', function (req, res) {
res.send(rs);
});
admin.get('/get_hosts', function (req, res) {
res.setHeader("Content-Type","application/json");
var comstr = attrComsArr.join("/");
var str = execSync(`node ./get_project_config.js -type hosts`)
var items = String(str);
res.send(items);
});
admin.post('/add_new_proxy', function (req, res) {
let request = req.body;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment