From 620db27468b26eb8d6b060741d08c22bf4d39110 Mon Sep 17 00:00:00 2001 From: Nils Jakobi Date: Sun, 8 Nov 2020 17:09:58 +0100 Subject: [PATCH] removed useless "home" site for now --- main.go | 5 +++-- rewards.go | 4 ++-- templates/includes.html | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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 @@