aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/about
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-06-04 12:51:47 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-06-04 12:51:47 +0200
commit3739c9e14b0c65a59a520dbfefa459e43af3bf20 (patch)
tree3731016eb12180f12817ed1094eee8cb0f67b49b /pkg/handler/about
parent90b2a890096ee9ab3ff84c57542b5220aa9ebe4c (diff)
downloadcerrado-3739c9e14b0c65a59a520dbfefa459e43af3bf20.tar.gz
cerrado-3739c9e14b0c65a59a520dbfefa459e43af3bf20.tar.bz2
cerrado-3739c9e14b0c65a59a520dbfefa459e43af3bf20.zip
feat: Wrap request
Since request is not a interface I need to create a wraper for it so I can extend it later.
Diffstat (limited to 'pkg/handler/about')
-rw-r--r--pkg/handler/about/handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/handler/about/handler.go b/pkg/handler/about/handler.go
index ee084cd..b3a1593 100644
--- a/pkg/handler/about/handler.go
+++ b/pkg/handler/about/handler.go
@@ -9,6 +9,7 @@ import (
"github.com/gomarkdown/markdown/html"
"github.com/gomarkdown/markdown/parser"
+ "git.gabrielgio.me/cerrado/pkg/ext"
"git.gabrielgio.me/cerrado/templates"
)
@@ -26,7 +27,7 @@ func NewAboutHandler(configRepo configurationRepository) *AboutHandler {
return &AboutHandler{configRepo.GetRootReadme()}
}
-func (g *AboutHandler) About(w http.ResponseWriter, r *http.Request) error {
+func (g *AboutHandler) About(w http.ResponseWriter, r *ext.Request) error {
f, err := os.Open(g.readmePath)
if err != nil {
return err