|
package api
|
|
|
|
import (
|
|
"github.com/goharbor/harbor/src/common/utils/log"
|
|
"net/http"
|
|
)
|
|
|
|
// Ping monitor the server status
|
|
func Ping(w http.ResponseWriter, r *http.Request) {
|
|
if err := writeJSON(w, "Pong"); err != nil {
|
|
log.Errorf("Failed to write response: %v", err)
|
|
return
|
|
}
|
|
}
|