go-jamming/app/index/handler.go

18 lines
379 B
Go

package index
import (
"net/http"
"fmt"
"brainbaking.com/go-jamming/common"
)
func Handle(conf *common.Config) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, "This is a Jamstack microservice endpoint.\nWanna start jammin' too? Go to https://github.com/wgroeneveld/go-jamming !")
}
}