wip restyling

This commit is contained in:
partisan 2024-03-30 18:00:43 +01:00
parent 96dae70aa9
commit 7bf2b8e609
13 changed files with 1714 additions and 505 deletions

View file

@ -32,6 +32,9 @@ var funcs = template.FuncMap{
var templates = template.Must(template.New("").Funcs(funcs).ParseFiles("templates/results.html"))
func main() {
// Serve static files from the 'static' directory
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
http.HandleFunc("/", handleSearch)
http.HandleFunc("/search", handleSearch)
fmt.Println("Server is listening on http://localhost:5000")