Commit d3d85056 authored by tywldx's avatar tywldx

f

parent 9d290bcb
...@@ -256,7 +256,21 @@ admin.get('/get_project_attr/:name', async function (req, res) { ...@@ -256,7 +256,21 @@ admin.get('/get_project_attr/:name', async function (req, res) {
res.send(e) res.send(e)
} }
}); });
// 获取项目配置具体属性
admin.get('/get_attr_from_project/:name/:attr', async function (req, res) {
res.setHeader("Content-Type", "application/json");
var names = req.params.name.split("--");
var p_name = "";
if (names.length > 1) {
p_name = names[0]
} else {
p_name = req.params.name
}
let configs = await getProjectConfigPromise();
let projects = configs.projects
let pro = projects[p_name];
res.send(pro[req.params.attr]);
});
// 获取所有域名 // 获取所有域名
admin.get('/get_hosts', async function (req, res) { admin.get('/get_hosts', async function (req, res) {
......
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