27 lines
352 B
Go
27 lines
352 B
Go
package site
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func NewSiteHandler() http.Handler {
|
|
mux := http.NewServeMux()
|
|
|
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "text/html")
|
|
w.Write([]byte(`
|
|
<DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>TEST</title>
|
|
</head>
|
|
<body>
|
|
TEST
|
|
</body>
|
|
</html>
|
|
`))
|
|
})
|
|
|
|
return mux
|
|
}
|