From 20b92130106007585cbdde73f6622428d9cf68c8 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 2 Aug 2021 15:21:12 -0600 Subject: add api endpoints for pow and mailinglist, plus some framework improvements --- srv/mailinglist/mailinglist.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'srv/mailinglist/mailinglist.go') diff --git a/srv/mailinglist/mailinglist.go b/srv/mailinglist/mailinglist.go index 03067b2..2ebb952 100644 --- a/srv/mailinglist/mailinglist.go +++ b/srv/mailinglist/mailinglist.go @@ -51,6 +51,11 @@ type Params struct { UnsubURL string } +// New initializes and returns a MailingList instance using the given Params. +func New(params Params) MailingList { + return &mailingList{params: params} +} + type mailingList struct { params Params } -- cgit v1.2.3