log
parent
84e4600737
commit
967d33b03b
1
main.go
1
main.go
|
|
@ -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})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue