sitespeed.io web UI with Express/Pug/SQLite — port 3132. Includes job queue, SSE live log, full metrics dashboard, site history, CO2/axe/CWV sections, and Docker support. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
250 B
JavaScript
12 lines
250 B
JavaScript
import { Router } from 'express';
|
|
import { getHistory } from '../db.js';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/', (req, res) => {
|
|
const jobs = getHistory(200);
|
|
res.render('history', { title: 'Test History', jobs });
|
|
});
|
|
|
|
export default router;
|