feat: add markdown image gallery previews
This commit is contained in:
@@ -66,7 +66,10 @@ export const tryHandleLocalFsProxy = async (method: string, requestPath: string)
|
||||
|
||||
const targetPath = parsed.searchParams.get('path') || '';
|
||||
const optional = parsed.searchParams.get('optional') === 'true';
|
||||
const resolution: FsReadPathResolution = await resolveFileReadPath(targetPath);
|
||||
const resolution: FsReadPathResolution = await resolveFileReadPath(
|
||||
targetPath,
|
||||
parsed.searchParams.get('directory') || undefined,
|
||||
);
|
||||
if (!resolution.ok) {
|
||||
if (fsProxyPath === '/api/fs/stat' && optional && resolution.status === 404) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user