From da4c05c6a8f1329733253c54ffe9596cb9fe5967 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 11 Apr 2024 12:49:06 +0200 Subject: [PATCH] fix ambiguity in igen routes leading to broken prompt history endpoint Signed-off-by: Julien Veyssier --- appinfo/routes.php | 2 +- src/views/Text2Image/Text2ImageCustomPickerElement.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index 2cf95d67..887d1841 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -13,7 +13,7 @@ ['name' => 'assistant#getAssistantTaskResultPage', 'url' => '/task/view/{metaTaskId}', 'verb' => 'GET'], ['name' => 'Text2Image#showGenerationPage', 'url' => '/i/{imageGenId}', 'verb' => 'GET'], - ['name' => 'Text2Image#getPromptHistory', 'url' => '/i/prompt_history', 'verb' => 'GET'], + ['name' => 'Text2Image#getPromptHistory', 'url' => '/i/data/prompt_history', 'verb' => 'GET'], ['name' => 'FreePrompt#processPrompt', 'url' => '/f/process_prompt', 'verb' => 'POST'], ['name' => 'FreePrompt#getPromptHistory', 'url' => '/f/prompt_history', 'verb' => 'GET'], diff --git a/src/views/Text2Image/Text2ImageCustomPickerElement.vue b/src/views/Text2Image/Text2ImageCustomPickerElement.vue index 8d476999..d626ebc8 100644 --- a/src/views/Text2Image/Text2ImageCustomPickerElement.vue +++ b/src/views/Text2Image/Text2ImageCustomPickerElement.vue @@ -204,7 +204,7 @@ export default { }, 300) }, getPromptHistory() { - const url = generateUrl('/apps/assistant/i/prompt_history') + const url = generateUrl('/apps/assistant/i/data/prompt_history') return axios.get(url) .then((response) => { this.prompts = response.data