mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Use opensearch for suggestions api.
This commit is contained in:
parent
cbedbd0626
commit
89bcb549cc
1 changed files with 5 additions and 3 deletions
|
@ -47,9 +47,11 @@ export default {
|
|||
}
|
||||
},
|
||||
async refreshSuggestions() {
|
||||
this.searchSuggestions = await this.fetchJson(this.apiUrl() + "/suggestions", {
|
||||
this.searchSuggestions = (
|
||||
await this.fetchJson(this.apiUrl() + "/opensearch/suggestions", {
|
||||
query: this.searchText,
|
||||
});
|
||||
})
|
||||
)?.[1];
|
||||
this.searchSuggestions.unshift(this.searchText);
|
||||
this.setSelected(0);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue