Reapply "Add missing admin action files and navigation links"
This reverts commit 4d515bc400.
This commit is contained in:
1 parent
96ed768f14
commit
5b4228261a
338 files changed
+28143
-5948
No files matched your search
@@ -46,8 +46,12 @@ 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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user