added image proxy

This commit is contained in:
partisan 2024-04-05 14:15:43 +02:00
parent 33dbefcf6e
commit 8da8999802
5 changed files with 101 additions and 16 deletions

View file

@ -73,6 +73,7 @@ func main() {
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
http.HandleFunc("/", handleSearch)
http.HandleFunc("/search", handleSearch)
http.HandleFunc("/img_proxy", handleImageProxy)
fmt.Println("Server is listening on http://localhost:5000")
log.Fatal(http.ListenAndServe(":5000", nil))
}