Fix API paths and add missing settings

- Fix PHP syntax error in auto-screenshot.php (cron comment)
- Change fetch paths from absolute /api/ to relative api/
- Add missing settings to settings.json (weekly_timelapse_enabled, auto_screenshot, sharing)
This commit is contained in:
Claude
2026-01-30 20:55:52 +00:00
parent 6a24b564a4
commit 69e09c2708
3 changed files with 15 additions and 4 deletions
+2 -2
View File
@@ -3444,7 +3444,7 @@ const VideoSearch = {
resultsDiv.style.display = 'block';
contentDiv.innerHTML = '<div style="text-align:center;padding:20px;"><span style="font-size:2rem;">🔄</span><br>Suche läuft...</div>';
fetch('/api/video-search.php?' + params.toString())
fetch('api/video-search.php?' + params.toString())
.then(r => r.json())
.then(data => {
if (data.success) {
@@ -3602,7 +3602,7 @@ const ShareModal = {
resultDiv.innerHTML = '<div style="color:#666;padding:10px;text-align:center;">🔄 Wird gesendet...</div>';
resultDiv.style.display = 'block';
fetch('/api/share.php', {
fetch('api/share.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ path, type, email, message, sender_name: senderName })