feat(home): implement home summary feature with routes and use case
- Added home routes and corresponding route handler for fetching home summary. - Created GetHomeSummary use case to aggregate user data including groups, attendees, and upcoming payments. - Introduced HomeSummaryDto and related schemas for data validation. - Implemented nextClassOccurrence function to determine the next class based on user timezone. - Added tests for home summary functionality and next class occurrence logic.
This commit is contained in:
8
apps/backend/src/modules/home/routes.ts
Normal file
8
apps/backend/src/modules/home/routes.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Hono } from 'hono';
|
||||
import getSummaryRoute from './features/get-summary/route';
|
||||
|
||||
const routes = new Hono();
|
||||
|
||||
routes.route('/', getSummaryRoute);
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user