"feat: add EventItem, EventReview models with seed data and mock files, update User and Event schemas"
This commit is contained in:
@@ -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, {
|
||||
|
Reference in New Issue
Block a user