first commit
This commit is contained in:
8
frontend/src/api/sr-levels.ts
Normal file
8
frontend/src/api/sr-levels.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user