"feat: add EventItem, EventReview models with seed data and mock files, update User and Event schemas"

This commit is contained in:
louiscklaw
2025-06-03 15:29:05 +08:00
parent a0a4ffcb4e
commit 24920fb313
52 changed files with 2140 additions and 56 deletions

View File

@@ -7,7 +7,7 @@ export const STATUS = {
UNAUTHORIZED: 401,
};
export function response(data: string | Record<string, unknown>, status: number): Response {
export function response(data: string | Record<string, unknown> | Record<string, unknown>[], status: number): Response {
const value = typeof data === 'string' ? data : JSON.stringify(data);
return new Response(value, {