Skip to content

Commit 4a06426

Browse files
committed
feat(api): expose dashboard summary via item route
1 parent e1187f5 commit 4a06426

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routes/api/v1/data/[id].dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ Future<Response> _handleGet(
122122
id: id,
123123
userId: userIdForRepoCall,
124124
); // userId should be null for AppConfig
125+
case 'dashboard_summary':
126+
final repo = context.read<HtDataRepository<DashboardSummary>>();
127+
item = await repo.read(
128+
id: id,
129+
userId: userIdForRepoCall,
130+
);
125131
default:
126132
// This case should ideally be caught by middleware, but added for safety
127133
// Throw an exception to be caught by the errorHandler

0 commit comments

Comments
 (0)