summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 0289256..7698b1e 100644
--- a/main.go
+++ b/main.go
@@ -76,11 +76,11 @@ func main() {
router := mux.NewRouter()
router.PathPrefix("/static").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(staticpath))))
- router.HandleFunc("/register", register)
- router.HandleFunc("/activate", activate)
- router.HandleFunc("/login", login)
- router.HandleFunc("/logincheck", logincheck)
- router.HandleFunc("/logout", logout)
+ router.HandleFunc("/register", mkHttpHandler(register, tplRegister))
+ router.HandleFunc("/activate", mkHttpHandler(activate, tplMsg))
+ router.HandleFunc("/login", mkHttpHandler(login, tplLogin))
+ router.HandleFunc("/logincheck", mkHttpHandler(logincheck, tplMsg))
+ router.HandleFunc("/logout", mkHttpHandler(logout, tplMsg))
http.Handle("/", router)