feat(rpc): add 'suggest-pkgbase' type

This feature of RPC is required to take advantage of
javascript typeahead.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-18 18:43:50 -07:00
parent fb0f252b39
commit 990f4d182b
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 36 additions and 7 deletions

View file

@ -67,7 +67,7 @@ const typeahead = (function() {
}
function fetchData(letter) {
const url = '/rpc?type=' + suggest_type + '&arg=' + letter;
const url = '/rpc?v=5&type=' + suggest_type + '&arg=' + letter;
fetch(url).then(function(response) {
return response.json();
}).then(function(data) {