|
|
@ -179,7 +179,7 @@ func main() {
|
|
|
|
query := r.FormValue("q")
|
|
|
|
query := r.FormValue("q")
|
|
|
|
return initSearchTemplateData(Search(query))
|
|
|
|
return initSearchTemplateData(Search(query))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[]string{http.MethodGet, http.MethodPost},
|
|
|
|
[]string{http.MethodGet},
|
|
|
|
))
|
|
|
|
))
|
|
|
|
r.Handle("/", http.FileServer(http.Dir("static")))
|
|
|
|
r.Handle("/", http.FileServer(http.Dir("static")))
|
|
|
|
log.Fatal(http.ListenAndServe(":3334", r))
|
|
|
|
log.Fatal(http.ListenAndServe(":3334", r))
|
|
|
|