aboutsummaryrefslogtreecommitdiff
path: root/backend/home.go
blob: 83e04d97fa5a85e4a3389c206a6c9aae5df4fd85 (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, r *http.Request) {
		d := &data{
			title:       "",
			Article:     false,
			Domain:      "anhgelus.world",
			URL:         "/",
			Image:       "",
			Description: "",
		}
		d.handleGeneric(w, r, "home")
	})
}