Add ProseSmall as a private commentary (using %%)

This commit is contained in:
2024-12-10 17:26:35 +01:00
parent 3b919075ef
commit 9c69ff2903
6 changed files with 29 additions and 17 deletions

View File

@@ -20,8 +20,6 @@ export default defineEventHandler(async (e) => {
'type': explorerContentTable.type,
'navigable': explorerContentTable.navigable,
'private': explorerContentTable.private,
'order': explorerContentTable.order,
'visit': explorerContentTable.visit,
}).from(explorerContentTable).where(eq(explorerContentTable.path, sql.placeholder('path'))).prepare().get({ path });
if(content !== undefined)
@@ -39,7 +37,11 @@ export default defineEventHandler(async (e) => {
return;
}
return content;
return { path: content.path,
owner: content.owner,
title: content.title,
type: content.type,
};
}
setResponseStatus(e, 404);