wip restyling
This commit is contained in:
parent
96dae70aa9
commit
7bf2b8e609
13 changed files with 1714 additions and 505 deletions
3
main.go
3
main.go
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue