From 8d7e708d98a3a46ba3ba08f9c8deeb4838bb8ca5 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 17 May 2024 23:37:43 +0200 Subject: Render posts completely using common rendering methods The aim is to reduce reliance on custom logic in the handlers for every protocol, eventually outsourcing all of it into `render.Methods`, leaving each protocol to simply direct calls to the correct template. --- 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 835b2d0..996b769 100644 --- a/src/cmd/mediocre-blog/main.go +++ b/src/cmd/mediocre-blog/main.go @@ -94,6 +94,7 @@ func main() { gmiParams.PostStore = postStore gmiParams.PostAssetLoader = postAssetLoader gmiParams.HTTPPublicURL = httpParams.PublicURL + gmiParams.HTTPGeminiGatewayURL = httpParams.GeminiGatewayURL logger.Info(ctx, "starting gmi api") gmiAPI, err := gmi.New(gmiParams) -- cgit v1.2.3