aboutsummaryrefslogtreecommitdiff
path: root/home.go
diff options
context:
space:
mode:
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)
+}