added search suggestions

This commit is contained in:
partisan 2024-08-21 22:36:45 +02:00
parent 56e527d337
commit fd78b1d4fa
4 changed files with 482 additions and 0 deletions

View file

@ -166,6 +166,7 @@ func runServer() {
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
http.HandleFunc("/", handleSearch)
http.HandleFunc("/search", handleSearch)
http.HandleFunc("/suggestions", handleSuggestions)
http.HandleFunc("/img_proxy", handleImageProxy)
http.HandleFunc("/node", handleNodeRequest)
http.HandleFunc("/settings", handleSettings)