aboutsummaryrefslogtreecommitdiff
path: root/home.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 16:53:04 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 16:53:04 +0100
commit98ffc2688cb8cc31ffb1c24e0d07977e1b61bca7 (patch)
treeeafd82a89ab20cfbf257129c72ca8fdd65261ffc /home.go
parentee22fe4ee5fc422d9e245e322801c1842803dfd6 (diff)
Add tooltips, rename Root into Home
Diffstat (limited to 'home.go')
-rw-r--r--home.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/home.go b/home.go
new file mode 100644
index 0000000..490d8a3
--- /dev/null
+++ b/home.go
@@ -0,0 +1,11 @@
+package main
+
+import "net/http"
+
+func init() {
+ http.HandleFunc("/", homeHandler)
+}
+
+func homeHandler(w http.ResponseWriter, r *http.Request) {
+ http.Redirect(w, r, "/view/Home", http.StatusFound)
+}