Skip to content

Commit

Permalink
settings api renamed to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
17coincooker committed Sep 16, 2023
1 parent f327f26 commit b20f21f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/settings/route.ts → app/api/profile/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function POST(request: Request) {
// return updated user
return NextResponse.json(updatedUser, { status: 200 });
} catch (error) {
console.log(error, 'ERROR_SETTINGS');
console.log(error, 'ERROR_PROFILE_UPDATE');
return new NextResponse('Internal Server Error', { status: 500 });
}
}
2 changes: 1 addition & 1 deletion app/components/sidebar/SettingsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({
setIsLoading(true);

axios
.post('/api/settings', data)
.post('/api/profile', data)
.then(() => {
router.refresh();
onClose();
Expand Down

0 comments on commit b20f21f

Please sign in to comment.