import api from './api'; import type { SearchResponse } from '../types'; export const searchService = { // GET /api/search?q= — Typesense-backed search over tracks (title, artist). async search(q: string): Promise { const res = await api.get('/search', { params: { q } }); return res.data; }, };