summaryrefslogtreecommitdiff
path: root/pages/landing.go
diff options
context:
space:
mode:
Diffstat (limited to 'pages/landing.go')
-rw-r--r--pages/landing.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/pages/landing.go b/pages/landing.go
new file mode 100644
index 0000000..d8c4f54
--- /dev/null
+++ b/pages/landing.go
@@ -0,0 +1,19 @@
+package pages
+
+import (
+ _ "embed"
+ "html/template"
+ "net/http"
+)
+
+//go:embed landing.gohtml
+var landContent string
+var landTmpl = template.Must(template.New("delayed.link").Parse(landContent))
+
+func Land(w http.ResponseWriter, r *http.Request) {
+ w.WriteHeader(http.StatusOK)
+ err := landTmpl.Execute(w, nil)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ }
+}