修复获取配置文件参数

This commit is contained in:
whyour 2023-05-14 20:53:45 +08:00
parent 41521f1d08
commit e70fa83074

View File

@ -46,7 +46,7 @@ export default (app: Router) => {
);
} else {
content = getFileContentByName(
join(config.samplePath, req.params.file),
join(config.configPath, req.params.file),
);
}
res.send({ code: 200, data: content });