summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorhorus_arch2015-03-20 23:16:27 +0100
committerhorus_arch2015-03-20 23:16:27 +0100
commit491462e033ae78a5b5c4f93ed8d5663e4da0a9e3 (patch)
treecdc82ee4c600a86ba6bc7b92a589b129a01c7429 /main.go
parent17bea88eb3f6e2bc5f63641437a997cc8bd32881 (diff)
downloadfreemail-491462e033ae78a5b5c4f93ed8d5663e4da0a9e3.tar.gz
Fix bug which prevented creating a new entry.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 23e15b4..d73587b 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,7 @@ func main() {
r := mux.NewRouter()
r.HandleFunc("/", IndexHandler)
+ r.HandleFunc("/register", RegisterHandler)
r.HandleFunc("/create", CreateNewEntryHandler).Methods("POST")
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static"))))