💥 Updated API routes

This commit is contained in:
2025-10-22 22:51:51 +08:00
parent 2a7d12de48
commit 1ae81794b1
49 changed files with 197 additions and 182 deletions

View File

@@ -13,14 +13,14 @@ class AbuseReportService {
Future<SnAbuseReport> getReport(String id) async {
final response = await ref
.read(apiClientProvider)
.get('/id/safety/reports/me/$id');
.get('/pass/safety/reports/me/$id');
return SnAbuseReport.fromJson(response.data);
}
Future<List<SnAbuseReport>> getReports() async {
final response = await ref
.read(apiClientProvider)
.get('/id/safety/reports/me');
.get('/pass/safety/reports/me');
return (response.data as List)
.map((json) => SnAbuseReport.fromJson(json))
.toList();