Skip to content

Commit

Permalink
Chore: 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Aug 19, 2023
1 parent 045cc88 commit 3c4f0f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/signup/setting/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<section className="flex flex-col w-full items-center max-w-screen-sm mx-auto mt-24 py-5 px-10 sm:px-32">
Expand Down
2 changes: 1 addition & 1 deletion src/service/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export async function getUserInfo2(userId: number): Promise<UserInfo2> {

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' },
Expand Down

0 comments on commit 3c4f0f8

Please sign in to comment.