refactor(web): migrate to TypeScript + standard Vue3 structure
This commit is contained in:
7
memora-web/src/services/api/stats.ts
Normal file
7
memora-web/src/services/api/stats.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { http } from '../http'
|
||||
import type { Stats } from './types'
|
||||
|
||||
export async function getStatistics() {
|
||||
const res = await http.get<{ data: Stats }>('/stats')
|
||||
return res.data
|
||||
}
|
||||
Reference in New Issue
Block a user