summaryrefslogtreecommitdiff
path: root/src/http/http.go
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/http/http.go
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/http/http.go')
-rw-r--r--src/http/http.go4
1 files changed, 4 insertions, 0 deletions
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.