Fix general settings route and req.user references

- Update frontend settings service to use correct /api/admin/settings/general route
- Fix all req.user to req.admin references in adminSettings.js
- Ensures settings can be saved without authentication errors
This commit is contained in:
2025-07-07 15:32:42 +02:00
parent f0768cd31b
commit 971397c338
20 changed files with 716 additions and 127 deletions
+4 -4
View File
@@ -16,9 +16,9 @@
"date-fns": "^2.29.3",
"js-cookie": "^3.0.5",
"lucide-react": "^0.292.0",
"react": "^19.1.0",
"react": "^18.3.1",
"react-countdown": "^2.3.5",
"react-dom": "^19.1.0",
"react-dom": "^18.3.1",
"react-image-gallery": "^1.2.11",
"react-intersection-observer": "^9.4.3",
"react-router-dom": "^6.8.0",
@@ -28,8 +28,8 @@
"devDependencies": {
"@eslint/js": "^9.29.0",
"@types/js-cookie": "^3.0.6",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.5.2",
"autoprefixer": "^10.4.13",
"eslint": "^9.29.0",