This commit is contained in:
Bel LaPointe
2024-04-11 16:51:23 -06:00
parent 84e4600737
commit 967d33b03b

View File

@@ -70,6 +70,7 @@ func newHandler(cfg Config) http.HandlerFunc {
func newHandlerPostAPIV1Events(cfg Config) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
src := path.Base(strings.TrimSuffix(r.URL.Path, "/"))
log.Printf("%s %s | src=%s", r.Method, r.URL, src)
json.NewEncoder(w).Encode(map[string]any{"src": src})
}
}