aboutsummaryrefslogtreecommitdiff
path: root/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'root.go')
-rw-r--r--root.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/root.go b/root.go
new file mode 100644
index 0000000..b9b7e4d
--- /dev/null
+++ b/root.go
@@ -0,0 +1,11 @@
+package main
+
+import "net/http"
+
+func init() {
+ http.HandleFunc("/", rootHandler)
+}
+
+func rootHandler(w http.ResponseWriter, r *http.Request) {
+ http.Redirect(w, r, "/view/Root", http.StatusFound)
+}