mirror of
https://github.com/whyour/qinglong.git
synced 2025-09-11 21:33:06 +08:00
Fix optional path compatibility checks
This commit is contained in:
parent
53a96462b2
commit
719a32c191
|
@ -85,7 +85,7 @@ export default (app: Router) => {
|
|||
try {
|
||||
const scriptService = Container.get(ScriptService);
|
||||
const content = await scriptService.getFile(
|
||||
req.query.path as string,
|
||||
req.query?.path as string || '',
|
||||
req.query.file as string,
|
||||
);
|
||||
res.send({ code: 200, data: content });
|
||||
|
|
Loading…
Reference in New Issue
Block a user