diff --git a/main.go b/main.go index 8d9cd28..3231fa3 100644 --- a/main.go +++ b/main.go @@ -15,8 +15,9 @@ func main() { http.Handle("/css/", http.StripPrefix("/css/", http.FileServer(http.Dir("css")))) // when navigating to /home it should serve the home page - http.HandleFunc("/", Home) - http.HandleFunc("/rewards", Upload) + // http.HandleFunc("/", Home) + http.HandleFunc("/", Rewards) + http.HandleFunc("/rewards", Rewards) http.ListenAndServe(getPort(), nil) } diff --git a/rewards.go b/rewards.go index e2ced1f..a832997 100644 --- a/rewards.go +++ b/rewards.go @@ -19,8 +19,8 @@ type line struct { Reference string } -// Upload needs a comment -func Upload(w http.ResponseWriter, r *http.Request) { +// Rewards needs a comment +func Rewards(w http.ResponseWriter, r *http.Request) { type data struct { Title string Uploaded bool diff --git a/templates/includes.html b/templates/includes.html index 6a06585..cfc8472 100644 --- a/templates/includes.html +++ b/templates/includes.html @@ -19,7 +19,7 @@