aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/handler.go b/handler.go
index 369da40..8894b62 100644
--- a/handler.go
+++ b/handler.go
@@ -1,22 +1,11 @@
package main
import (
+ "html/template"
"io/ioutil"
"net/http"
- "text/template"
)
-func init() {
- http.Handle("/css/", http.FileServer(http.Dir("assets")))
- http.Handle("/fonts/", http.FileServer(http.Dir("assets")))
- http.HandleFunc("/index", indexHandler)
- http.HandleFunc("/view/", viewHandler)
- http.HandleFunc("/edit/", editHandler)
- http.HandleFunc("/del/", delHandler)
- http.HandleFunc("/save/", saveHandler)
- http.HandleFunc("/", homeHandler)
-}
-
var (
indextmpl = template.Must(template.ParseFiles("tmpl/root", "tmpl/index"))
viewtmpl = template.Must(template.ParseFiles("tmpl/root", "tmpl/view"))