Skip to content

Commit 34a0029

Browse files
committed
refactor(api): adapt GET /data to use native document query
- Rewrites the `_handleGet` method in the collection route handler to accept a single, JSON-encoded `filter` parameter. - Removes the complex logic for translating individual URL parameters into a query map. - Eliminates the `_camelToSnake` helper, as the API now passes native model field names to the data layer. - This change simplifies the API handler and aligns it with a document-native query model, making it more flexible and robust.
1 parent cc9d32f commit 34a0029

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

routes/api/v1/data/index.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'dart:io';
33

44
import 'package:dart_frog/dart_frog.dart';
55
import 'package:ht_api/src/registry/model_registry.dart';
6-
import 'package:ht_api/src/services/user_preference_limit_service.dart';
76
import 'package:ht_data_repository/ht_data_repository.dart';
87
import 'package:ht_shared/ht_shared.dart';
98

0 commit comments

Comments
 (0)