Files
elmprodvpn/selective-vpn-api/app/transport_handlers_runtime_observability.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()))
}