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
This commit is contained in:
Vito Sansevero
2026-02-02 15:20:05 -08:00
parent f94eb86321
commit 0655af3713
+1 -1
View File
@@ -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({