initial
This commit is contained in:
12
server/handler/home.go
Normal file
12
server/handler/home.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"vctp/components/core"
|
||||
"vctp/components/home"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Home handles the home page.
|
||||
func (h *Handler) Home(w http.ResponseWriter, r *http.Request) {
|
||||
h.html(r.Context(), w, http.StatusOK, core.HTML("Example Site", home.Home()))
|
||||
}
|
Reference in New Issue
Block a user