activity feed
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 30s
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 30s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user