summaryrefslogtreecommitdiff
path: root/view/index.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-02-15 19:43:36 +0100
committerxengineering <me@xengineering.eu>2024-02-15 19:58:08 +0100
commit62e735a0ff2a05c5455abc1f27d1d14167158175 (patch)
tree463f08b05c312f50ca636a9619d9d5047ee61f8c /view/index.go
parent246687318e03fb649c30c4510e264e65b25ec6da (diff)
downloadceres-62e735a0ff2a05c5455abc1f27d1d14167158175.tar
ceres-62e735a0ff2a05c5455abc1f27d1d14167158175.tar.zst
ceres-62e735a0ff2a05c5455abc1f27d1d14167158175.zip
view: Add index handler
Diffstat (limited to 'view/index.go')
-rw-r--r--view/index.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/view/index.go b/view/index.go
new file mode 100644
index 0000000..8b9e73f
--- /dev/null
+++ b/view/index.go
@@ -0,0 +1,9 @@
+package view
+
+import (
+ "net/http"
+)
+
+func Index(w http.ResponseWriter, r *http.Request) {
+ http.Redirect(w, r, "/recipes", http.StatusSeeOther)
+}