Move family location sharing to its own controller

This commit is contained in:
Eugene Burmakin
2025-11-16 13:12:46 +01:00
parent 3a2dc1da5a
commit 3b5f775a4e
7 changed files with 147 additions and 143 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(`/api/v1/families/locations/toggle`, {
const response = await fetch(`/family/location_sharing`, {
method: 'PATCH',
headers: {
'Accept': 'application/json',