Search phase 1

This commit is contained in:
2026-04-29 14:12:18 +02:00
parent 1d8dfdb1da
commit eae5d1cc25
5 changed files with 235 additions and 0 deletions
+5
View File
@@ -115,6 +115,11 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
if r.Method == http.MethodGet && urlPath == "/" && r.URL.Query().Has("q") {
h.handleSearch(w, r)
return
}
info, err := os.Stat(fsPath)
if err != nil {
if os.IsNotExist(err) {