log
This commit is contained in:
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})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user