Fix family location sharing toggle

This commit is contained in:
Eugene Burmakin
2025-11-16 13:06:31 +01:00
parent d1ffc15fea
commit 3a2dc1da5a
7 changed files with 223 additions and 30 deletions

View File

@@ -62,7 +62,7 @@ export default class extends Controller {
try {
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
const response = await fetch(`/family/update_location_sharing`, {
const response = await fetch(`/api/v1/families/locations/toggle`, {
method: 'PATCH',
headers: {
'Accept': 'application/json',