added image proxy
This commit is contained in:
parent
33dbefcf6e
commit
8da8999802
5 changed files with 101 additions and 16 deletions
1
main.go
1
main.go
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue