chore: replace duplicate template code with templ

This commit is contained in:
Johan Siebens
2024-01-26 09:19:58 +01:00
parent 8f2c198bfe
commit cbde00c9f5
24 changed files with 702 additions and 872 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func Start(c *config.Config) error {
nonTlsAppHandler.Any("/*", handlers.HttpRedirectHandler(c.Tls))
tlsAppHandler := echo.New()
tlsAppHandler.Renderer = templates.NewTemplates()
tlsAppHandler.Renderer = &templates.Renderer{}
tlsAppHandler.Pre(handlers.HttpsRedirect(c.Tls))
tlsAppHandler.Use(EchoMetrics(p), EchoLogger(logger), EchoErrorHandler(), EchoRecover())