diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 12:40:32 +0100 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 12:45:10 +0100 |
commit | 6b3933282e3aa9803636b2ba580aced5c202eaa9 (patch) | |
tree | afee0d9661e964a3f6f2f782bd959333c4cdaa09 /src/http/http.go | |
parent | 63cc6cb217dadc2fa5aa8d55e054cdbad14df60a (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.go | 4 |
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. |