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/http/http.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/http.go') diff --git a/src/http/http.go b/src/http/http.go index d51671d..da404dc 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -44,6 +44,10 @@ type Params struct { // PublicURL is the base URL which site visitors can navigate to. PublicURL *url.URL + // GeminiPublicURL is the base URL which gemini site visitors can navigate + // to. + GeminiPublicURL *url.URL + // ListenProto and ListenAddr are passed into net.Listen to create the // API's listener. Both "tcp" and "unix" protocols are explicitly // supported. -- cgit v1.2.3