15 lines
336 B
Go
15 lines
336 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
func handleTransportRuntimeObservability(w http.ResponseWriter, r *http.Request) {
|
|
if r.Method != http.MethodGet {
|
|
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
|
|
return
|
|
}
|
|
writeJSON(w, http.StatusOK, transportRuntimeObservabilitySnapshotResponse(time.Now().UTC()))
|
|
}
|