mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
系统设置增加系统运行日志
This commit is contained in:
@@ -249,4 +249,17 @@ export default (app: Router) => {
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
route.get(
|
||||
'/log',
|
||||
async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
const systemService = Container.get(SystemService);
|
||||
await systemService.getSystemLog(res);
|
||||
} catch (e) {
|
||||
return next(e);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user