Skip to content

Commit

Permalink
fix ambiguity in igen routes leading to broken prompt history endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Apr 11, 2024
1 parent 1821582 commit da4c05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion src/views/Text2Image/Text2ImageCustomPickerElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da4c05c

Please sign in to comment.