Skip to content

Commit 2f259f0

Browse files
committed
chore: fix minor issue on admin retrieval
1 parent 9d7c4cb commit 2f259f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/hooks/express/admin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func
5757
}
5858

5959
// if is a directory search for index file matching the extension
60-
if (fs.statSync(pathname).isDirectory()) {
60+
if (exist && fs.statSync(pathname).isDirectory()) {
6161
pathname = pathname + '/index.html';
6262
ext = path.parse(pathname).ext;
6363
}

0 commit comments

Comments
 (0)