From 4dc1683d3ec01eb5030fadab182631e7bbe448c0 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 21 May 2022 14:03:38 -0600 Subject: Serve mailing list finalize and unsubscribe endpoints --- srv/src/http/api.go | 2 ++ srv/src/http/tpl/finalize.html | 45 +++++++++++++++++++++++++++++++++++++++ srv/src/http/tpl/unsubscribe.html | 44 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 srv/src/http/tpl/finalize.html create mode 100644 srv/src/http/tpl/unsubscribe.html (limited to 'srv/src/http') diff --git a/srv/src/http/api.go b/srv/src/http/api.go index 3cb4ba5..19a65d9 100644 --- a/srv/src/http/api.go +++ b/srv/src/http/api.go @@ -216,6 +216,8 @@ func (a *api) blogHandler() http.Handler { mux.Handle("/static/", http.FileServer(http.FS(staticFS))) mux.Handle("/follow", a.renderDumbTplHandler("follow.html")) + mux.Handle("/mailinglist/unsubscribe", a.renderDumbTplHandler("unsubscribe.html")) + mux.Handle("/mailinglist/finalize", a.renderDumbTplHandler("finalize.html")) mux.Handle("/feed.xml", a.renderFeedHandler()) mux.Handle("/", a.renderIndexHandler()) diff --git a/srv/src/http/tpl/finalize.html b/srv/src/http/tpl/finalize.html new file mode 100644 index 0000000..8bdfceb --- /dev/null +++ b/srv/src/http/tpl/finalize.html @@ -0,0 +1,45 @@ +{{ define "body" }} + + + + + + + + + +{{ end }} + +{{ template "base.html" . }} diff --git a/srv/src/http/tpl/unsubscribe.html b/srv/src/http/tpl/unsubscribe.html new file mode 100644 index 0000000..ad01735 --- /dev/null +++ b/srv/src/http/tpl/unsubscribe.html @@ -0,0 +1,44 @@ +{{ define "body" }} + + + + + + + + + +{{ end }} + +{{ template "base.html" . }} -- cgit v1.2.3