fix: Information Disclosure: Internal Prisma & Database Errors Returned in API Response

This commit is contained in:
kadirfiratftw committed 2026-06-23 01:51:44 +03:00
1 parent c0ea3aefbe
commit 173f28c677
6 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -21,8 +21,8 @@ export async function GET(request: Request) {
export async function POST(request: Request) {
const schema = z.object({
name: z.string().optional(),
description: z.string().optional(),
name: z.string().max(200).optional(),
description: z.string().max(500).optional(),
parameters: z.object({}).passthrough().optional(),
});