From 6b3933282e3aa9803636b2ba580aced5c202eaa9 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 24 Jan 2023 12:40:32 +0100 Subject: Refactor URL construction a bit BlogHTTPURL and BlogGeminiURL are now used specifically to construct absolute URLs to their respective endpoints. --- src/cmd/mediocre-blog/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd') diff --git a/src/cmd/mediocre-blog/main.go b/src/cmd/mediocre-blog/main.go index d6a6b56..d8ba768 100644 --- a/src/cmd/mediocre-blog/main.go +++ b/src/cmd/mediocre-blog/main.go @@ -112,6 +112,7 @@ func main() { httpParams.PostAssetStore = postAssetStore httpParams.PostDraftStore = postDraftStore httpParams.MailingList = ml + httpParams.GeminiPublicURL = gmiParams.PublicURL logger.Info(ctx, "starting http api") httpAPI, err := http.New(httpParams) -- cgit v1.2.3