aboutsummaryrefslogtreecommitdiff
path: root/backend/home.go
blob: a7f2ae17fb245e0d5553e06732c2880783295b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package backend

import (
	"net/http"

	"github.com/go-chi/chi/v5"
)

func HandleHome(r *chi.Mux) {
	r.Get("/", func(w http.ResponseWriter, _ *http.Request) {
		d := &data{
			title:       "",
			Article:     false,
			Domain:      "anhgelus.world",
			URL:         "/",
			Image:       "",
			Description: "",
		}
		d.handleGeneric(w, "home")
	})
}