import apiClient from './client'; import type { ScoreResponse, RankingsResponse } from '../lib/types'; export function getScores(symbol: string) { return apiClient .get(`scores/${symbol}`) .then((r) => r.data); } export function getRankings() { return apiClient.get('rankings').then((r) => r.data); } export function updateWeights(weights: Record) { return apiClient .put<{ message: string }>('scores/weights', { weights }) .then((r) => r.data); }