Skip to content

Commit 30c79f6

Browse files
committed
✨ Update routes to pass statistics to the home page
1 parent bc2d727 commit 30c79f6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎start/routes.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ router
2424
.middleware(middleware.guest())
2525

2626
router.get('/', async ({ inertia }) => {
27-
return inertia.render('home')
27+
return inertia.render('home', {
28+
stats: {
29+
members: 600,
30+
developers: 50,
31+
participation: 25,
32+
githubStars: 10,
33+
},
34+
})
2835
})
2936

3037
// GitHub auth routes

0 commit comments

Comments
 (0)