2021-04-07 10:06:16 +02:00
|
|
|
package index
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2021-04-09 21:00:54 +02:00
|
|
|
"net/http"
|
2021-04-07 11:29:21 +02:00
|
|
|
|
2021-04-09 18:04:04 +02:00
|
|
|
"brainbaking.com/go-jamming/common"
|
2021-04-07 10:06:16 +02:00
|
|
|
)
|
|
|
|
|
2021-04-07 11:29:21 +02:00
|
|
|
func Handle(conf *common.Config) http.HandlerFunc {
|
2021-04-09 21:00:54 +02:00
|
|
|
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
|
|
|
}
|