diff --git a/srv/src/http/api.go b/srv/src/http/api.go index 4143200..4ba6450 100644 --- a/srv/src/http/api.go +++ b/srv/src/http/api.go @@ -217,6 +217,7 @@ func (a *api) blogHandler() http.Handler { mux.Handle("/static/", http.FileServer(http.FS(staticFS))) mux.Handle("/follow", a.renderDumbTplHandler("follow.html")) + mux.Handle("/admin", a.renderDumbTplHandler("admin.html")) mux.Handle("/mailinglist/unsubscribe", a.renderDumbTplHandler("unsubscribe.html")) mux.Handle("/mailinglist/finalize", a.renderDumbTplHandler("finalize.html")) mux.Handle("/feed.xml", a.renderFeedHandler()) diff --git a/srv/src/http/tpl/admin.html b/srv/src/http/tpl/admin.html new file mode 100644 index 0000000..24b2770 --- /dev/null +++ b/srv/src/http/tpl/admin.html @@ -0,0 +1,17 @@ +{{ define "body" }} + +
@@ -21,6 +23,8 @@ +{{ if gt (len .Payload.IDs) 0 }} +