From f58e10343d8f68e45526bf5023498765aa100b32 Mon Sep 17 00:00:00 2001 From: soomanbaek Date: Tue, 15 Nov 2022 18:17:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20responseForm=20=EB=A7=A4=EA=B0=9C?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - message(string) -> data(any) - any로 둔 이유 : 반환하는 것이 너무 다양해서 타입을 지정하기가 어려움 --- server/utils/responseForm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils/responseForm.ts b/server/utils/responseForm.ts index 985a0b71..5c3d94c5 100644 --- a/server/utils/responseForm.ts +++ b/server/utils/responseForm.ts @@ -1,6 +1,6 @@ -export const responseForm = (statusCode: string, message: string) => { +export const responseForm = (statusCode: string, data: any) => { return { statusCode, - result: message, + result: data, }; };