8 lines
185 B
TypeScript
8 lines
185 B
TypeScript
import { http } from '../http'
|
|
import type { Stats } from './types'
|
|
|
|
export async function getStatistics() {
|
|
const res = await http.get<{ data: Stats }>('/stats')
|
|
return res.data
|
|
}
|