chore: fix minor issue on admin retrieval

This commit is contained in:
SamTV12345 2025-09-08 20:11:45 +02:00
parent 9d7c4cb1cb
commit 2f259f0578

View file

@ -57,7 +57,7 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func
}
// if is a directory search for index file matching the extension
if (fs.statSync(pathname).isDirectory()) {
if (exist && fs.statSync(pathname).isDirectory()) {
pathname = pathname + '/index.html';
ext = path.parse(pathname).ext;
}