aurcache/frontend/lib/api/statistics.dart

10 lines
225 B
Dart
Raw Normal View History

import '../models/stats.dart';
import 'api_client.dart';
extension StatsAPI on ApiClient {
Future<Stats> listStats() async {
final resp = await getRawClient().get("/stats");
return Stats.fromJson(resp.data);
}
}