summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorhorus_arch2015-03-23 10:58:54 +0100
committerhorus_arch2015-03-23 10:58:54 +0100
commit05194f3a09b2382f269d31e6e2fa472a7b95e5c1 (patch)
tree3a8aa81ae33e9b97149a55ff6a715caa3c93dda9 /main.go
parent558fe8ba9fb42231b34977fef542c43a34b3bd00 (diff)
downloadfreemail-05194f3a09b2382f269d31e6e2fa472a7b95e5c1.tar.gz
Add html documentation. Change password handler.
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index d73587b..c3222c6 100644
--- a/main.go
+++ b/main.go
@@ -34,7 +34,13 @@ func main() {
r := mux.NewRouter()
r.HandleFunc("/", IndexHandler)
r.HandleFunc("/register", RegisterHandler)
+ r.HandleFunc("/about", AboutHandler)
+ r.HandleFunc("/howto", HowtoHandler)
+ r.HandleFunc("/server", ServerHandler)
r.HandleFunc("/create", CreateNewEntryHandler).Methods("POST")
+ r.HandleFunc("/user", UserHandler)
+ r.HandleFunc("/password", PasswordHandler)
+ r.HandleFunc("/changePassword", ChangePasswordHandler).Methods("POST")
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static"))))
http.Handle("/", r)