From 3c4f0f86968af71f7153c2b93d8a257c8130e56d Mon Sep 17 00:00:00 2001 From: dongree Date: Sat, 19 Aug 2023 23:04:49 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/signup/setting/[slug]/page.tsx | 6 +++--- src/service/auth.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/signup/setting/[slug]/page.tsx b/src/app/signup/setting/[slug]/page.tsx index b1b305b5..3b66b94d 100644 --- a/src/app/signup/setting/[slug]/page.tsx +++ b/src/app/signup/setting/[slug]/page.tsx @@ -9,10 +9,10 @@ type Props = { }; export default function SignupSettingPage({ params: { slug } }: Props) { - // const headersList = headers(); - // const referer = headersList.get('referer'); + const headersList = headers(); + const referer = headersList.get('referer'); - // if (referer === null) redirect('/memos'); + if (referer === null) redirect('/memos'); return (
diff --git a/src/service/auth.ts b/src/service/auth.ts index aad87af2..659c9155 100644 --- a/src/service/auth.ts +++ b/src/service/auth.ts @@ -184,7 +184,7 @@ export async function getUserInfo2(userId: number): Promise { export async function registerNickname(nickname: string, userId: number) { return fetch( - `${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS_SECURE}/users/nickname${userId}`, + `${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS_SECURE}/users/nickname/${userId}`, { method: 'POST', headers: { 'Content-Type': 'application/json' },