implement search

This commit is contained in:
2025-01-14 01:22:45 -05:00
parent d4b357ab20
commit c3554afde9
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class Web {
app.get('/', async (req, res) => {
try {
const builds = await this.db.getBuildsBy(req.query);
const builds = 'q' in req.query ? await this.db.searchBuilds(req.query.q as string) : await this.db.getBuildsBy(req.query);
res.render('index', {
page: {
title: 'Archery',