From 65e1a3c88b52ca3ab2ed19ae2d0a37e3c7fc5ff1 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Mon, 2 Mar 2026 08:22:22 -0600 Subject: [PATCH] Fix profile create 307 redirect by adding trailing slash POST /api/profiles was being redirected to /api/profiles/ (307), which drops the request body. Match the FastAPI route definition. Co-Authored-By: Claude Opus 4.6 --- src/haunt_fm/templates/status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haunt_fm/templates/status.html b/src/haunt_fm/templates/status.html index 549e19e..11dc1c3 100644 --- a/src/haunt_fm/templates/status.html +++ b/src/haunt_fm/templates/status.html @@ -705,7 +705,7 @@ if (!name) { showToast('Profile name required', 'error'); return; } const body = { name }; if (display) body.display_name = display; - const res = await apiCall('POST', '/api/profiles', body); + const res = await apiCall('POST', '/api/profiles/', body); if (res.ok) { showToast('Profile "' + name + '" created', 'success'); setTimeout(() => location.reload(), 1000);