go-jamming/app/index/handler.go

16 lines
365 B
Go
Raw Normal View History

2021-04-07 10:06:16 +02:00
package index
import (
"fmt"
"net/http"
2021-04-09 18:04:04 +02:00
"brainbaking.com/go-jamming/common"
2021-04-07 10:06:16 +02:00
)
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 !")
}
2021-04-07 10:06:16 +02:00
}