9 lines
228 B
TypeScript
9 lines
228 B
TypeScript
import apiClient from './client';
|
|
import type { SRLevelResponse } from '../lib/types';
|
|
|
|
export function getLevels(symbol: string) {
|
|
return apiClient
|
|
.get<SRLevelResponse>(`sr-levels/${symbol}`)
|
|
.then((r) => r.data);
|
|
}
|