feat: search

This commit is contained in:
Evan Buss
2024-07-13 17:16:38 +00:00
parent 4f3948943a
commit 9094e780d0
8 changed files with 122 additions and 85 deletions

View File

@@ -95,7 +95,6 @@ func handleFeed(outputDir string) http.HandlerFunc {
searchTerm := r.URL.Query().Get("search")
if searchTerm != "" {
fmt.Println("Search term", searchTerm)
queryURL = replaceSearchPlaceHolder(queryURL, searchTerm)
}
@@ -213,6 +212,7 @@ func handleAuth() http.HandlerFunc {
http.SetCookie(w, cookie)
http.Redirect(w, r, returnUrl, http.StatusFound)
return
}
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)