diff --git a/server.go b/server.go index 3a89495..6b9f195 100644 --- a/server.go +++ b/server.go @@ -38,6 +38,7 @@ func main() { server.handle_logout(w, r) http.Redirect(w, r, "/", http.StatusFound) }) + http.HandleFunc("/secret", server.secret) // Start web server at 127.0.0.1:8080 fmt.Printf("Listening to %s on port %s...\n", ADDRESS, PORT) err := http.ListenAndServe(ADDRESS+":"+PORT, nil) diff --git a/static/index.html b/static/index.html index af83bfb..194bfda 100644 --- a/static/index.html +++ b/static/index.html @@ -23,6 +23,9 @@