aboutsummaryrefslogtreecommitdiff
path: root/garage.go
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-04-18 19:37:51 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-04-18 19:37:51 +0200
commit37b769491028a86d697e8d18be09b6e0c1046046 (patch)
tree04c874f3b82afd81f2c9b27fd4b164e46711ce98 /garage.go
parent02670ba6a60af8db1818d6d3adaafc7810d14689 (diff)
downloadguichet-37b769491028a86d697e8d18be09b6e0c1046046.tar.gz
guichet-37b769491028a86d697e8d18be09b6e0c1046046.zip
WIP templates
Diffstat (limited to 'garage.go')
-rw-r--r--garage.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/garage.go b/garage.go
new file mode 100644
index 0000000..40848cc
--- /dev/null
+++ b/garage.go
@@ -0,0 +1,26 @@
+package main
+
+import (
+ "net/http"
+)
+
+
+func handleGarageKey(w http.ResponseWriter, r *http.Request) {
+ tKey := getTemplate("garage_key.html")
+ tKey.Execute(w, nil)
+}
+
+func handleGarageWebsiteList(w http.ResponseWriter, r *http.Request) {
+ tWebsiteList := getTemplate("garage_website_list.html")
+ tWebsiteList.Execute(w, nil)
+}
+
+func handleGarageWebsiteNew(w http.ResponseWriter, r *http.Request) {
+ tWebsiteNew := getTemplate("garage_website_new.html")
+ tWebsiteNew.Execute(w, nil)
+}
+
+func handleGarageWebsiteInspect(w http.ResponseWriter, r *http.Request) {
+ tWebsiteInspect := getTemplate("garage_website_inspect.html")
+ tWebsiteInspect.Execute(w, nil)
+}