kv-music/test-search.js
2026-04-04 01:37:47 +03:00

8 lines
279 B
JavaScript

import { HiFiClient } from './js/HiFi.ts';
async function test() {
const client = new HiFiClient();
const res = await client.query('/search/?q=alskdjfalksjdfld&limit=5');
const json = await res.json();
console.log(JSON.stringify(json.data || {}));
}
void test();