修复 /:file 获取日志接口

This commit is contained in:
whyour
2025-05-16 00:57:27 +08:00
parent 95459c33ed
commit ec3d61a713
3 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export default (app: Router) => {
const logService = Container.get(LogService);
const finalPath = logService.checkFilePath(
(req.query.path as string) || '',
(req.query.file as string) || '',
(req.params.file as string) || '',
);
if (!finalPath || blacklist.includes(req.query.path as string)) {
return res.send({