mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复获取日志列表
This commit is contained in:
parent
c1d6a0a40b
commit
23781d8b34
|
@ -15,7 +15,7 @@ export default (app: Router) => {
|
|||
route.get('/', async (req: Request, res: Response, next: NextFunction) => {
|
||||
const logger: Logger = Container.get('logger');
|
||||
try {
|
||||
const result = readDirs(config.logPath, config.logPath, blacklist);
|
||||
const result = await readDirs(config.logPath, config.logPath, blacklist);
|
||||
res.send({
|
||||
code: 200,
|
||||
data: result,
|
||||
|
|
Loading…
Reference in New Issue
Block a user