mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 10:41:36 +00:00
Keep search terms in top bar
This commit is contained in:
parent
2cc6a2912a
commit
6180f858a7
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ module.exports = [
|
|||
const fetchURL = new URL("http://localhost:3000/api/v1/search")
|
||||
fetchURL.searchParams.set("q", query)
|
||||
const results = await fetch(fetchURL.toString()).then(res => res.json())
|
||||
return render(200, "pug/search.pug", {results})
|
||||
return render(200, "pug/search.pug", {query, results})
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue