Revert "Add missing admin action files and navigation links"

This reverts commit 41be6835bf.
This commit is contained in:
Simo committed 2026-07-11 20:37:56 +02:00
1 parent 4a1e1115b3
commit 4d515bc400
338 files changed
+5949 -28144

No files matched your search

+1 -3
View File
@@ -21,9 +21,7 @@ export async function POST(req: Request, { params }: { params: Promise<{ id: str
if (!ticketId) return apiError("Invalid ticket id", 422);
const body = (await req.json().catch(() => ({}))) as { content?: unknown };
const content = String(body.content ?? "")
.trim()
.slice(0, 5000);
const content = String(body.content ?? "").trim().slice(0, 5000);
if (!content) return apiError("Content is required");
try {
+2 -6
View File
@@ -46,12 +46,8 @@ export async function POST(req: Request) {
categoryId?: unknown;
};
const title = String(body.title ?? "")
.trim()
.slice(0, 255);
const content = String(body.content ?? "")
.trim()
.slice(0, 5000);
const title = String(body.title ?? "").trim().slice(0, 255);
const content = String(body.content ?? "").trim().slice(0, 5000);
if (!title) return apiError("Title is required");
if (!content) return apiError("Content is required");