🐛 Fix serval path breaking changes

This commit is contained in:
2025-07-19 02:50:24 +08:00
parent 3a4faac8cb
commit 4499d4ec8e
3 changed files with 10 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ class UpdateProfileScreen extends HookConsumerWidget {
}
final client = ref.watch(apiClientProvider);
await client.patch(
'/accounts/me/profile',
'/id/accounts/me/profile',
data: {'${position}_id': cloudFile.id},
);
final userNotifier = ref.read(userInfoProvider.notifier);
@@ -102,7 +102,7 @@ class UpdateProfileScreen extends HookConsumerWidget {
try {
final client = ref.watch(apiClientProvider);
await client.patch(
'/accounts/me',
'/id/accounts/me',
data: {
'name': usernameController.text,
'nick': nicknameController.text,
@@ -154,7 +154,7 @@ class UpdateProfileScreen extends HookConsumerWidget {
try {
final client = ref.watch(apiClientProvider);
await client.patch(
'/accounts/me/profile',
'/id/accounts/me/profile',
data: {
'bio': bioController.text,
'first_name': firstNameController.text,