activity feed
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 30s

This commit is contained in:
2026-02-28 01:16:31 -05:00
parent bdb6d5ee25
commit b9981d0e70
3 changed files with 34 additions and 2 deletions

View File

@@ -123,9 +123,10 @@ async function start() {
// Home page
app.get('/', (req, res) => {
const { Hunts } = require('./models');
const { Hunts, Scans } = require('./models');
const hunts = Hunts.getAll();
res.render('home', { title: 'Loot Hunt', hunts });
const recentActivity = Scans.getRecentActivity(5);
res.render('home', { title: 'Loot Hunt', hunts, recentActivity });
});
// 404 handler