aboutsummaryrefslogtreecommitdiff
path: root/backend/home.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 18:49:06 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 18:49:06 +0200
commitcc2f31d6d5f47472e7162c9aec605587f0abaad8 (patch)
tree76c6bdfc23a973c3244adc856ae78f6b33a61f56 /backend/home.go
parent49766901293631aeabfc96e8d80aba305f420630 (diff)
feat(backend): config name and description
Diffstat (limited to 'backend/home.go')
-rw-r--r--backend/home.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/backend/home.go b/backend/home.go
index 83e04d9..b70eebf 100644
--- a/backend/home.go
+++ b/backend/home.go
@@ -8,14 +8,6 @@ import (
func HandleHome(r *chi.Mux) {
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
- d := &data{
- title: "",
- Article: false,
- Domain: "anhgelus.world",
- URL: "/",
- Image: "",
- Description: "",
- }
- d.handleGeneric(w, r, "home")
+ new(data).handleGeneric(w, r, "home")
})
}