From 0655af3713957a7cfe1ec2826543f32caff3e0ec Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Mon, 2 Feb 2026 15:20:05 -0800 Subject: [PATCH] fix(admin): use correct endpoint for saving new prompts Change the saveNewPrompt() function to use /prompt_manager/save instead of /prompt_manager/prompts which has no POST handler. This was causing a 405 Method Not Allowed error when trying to add new prompts from the admin interface. Fixes #89 --- web/admin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/admin.html b/web/admin.html index 8e1f347..222473c 100644 --- a/web/admin.html +++ b/web/admin.html @@ -4652,7 +4652,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; } try { - const response = await fetch('/prompt_manager/prompts', { + const response = await fetch('/prompt_manager/save', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({