summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-01-24 12:40:32 +0100
committerBrian Picciano <mediocregopher@gmail.com>2023-01-24 12:45:10 +0100
commit6b3933282e3aa9803636b2ba580aced5c202eaa9 (patch)
treeafee0d9661e964a3f6f2f782bd959333c4cdaa09 /src/cmd
parent63cc6cb217dadc2fa5aa8d55e054cdbad14df60a (diff)
Refactor URL construction a bit
BlogHTTPURL and BlogGeminiURL are now used specifically to construct absolute URLs to their respective endpoints.
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/mediocre-blog/main.go1
1 files changed, 1 insertions, 0 deletions
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)