Add CMS termine editor for admin and vorstand

This commit is contained in:
Torsten Schulz (local)
2025-10-21 15:57:42 +02:00
parent 201de0a278
commit 1cbfbaf754
15 changed files with 779 additions and 229 deletions

View File

@@ -39,7 +39,7 @@ const news_post = defineEventHandler(async (event) => {
});
}
const body = await readBody(event);
const { id, title, content } = body;
const { id, title, content, isPublic } = body;
if (!title || !content) {
throw createError({
statusCode: 400,
@@ -50,6 +50,7 @@ const news_post = defineEventHandler(async (event) => {
id: id || void 0,
title,
content,
isPublic: isPublic || false,
author: user.name
});
return {