1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-18 00:49:09 -04:00
2022-12-05 15:45:38 +08:00

22 lines
387 B
Go

// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package grpc
import (
"net/http"
"code.gitea.io/gitea/routers/api/actions/ping"
"code.gitea.io/bots-proto-go/ping/v1/pingv1connect"
)
func PingRoute() (string, http.Handler) {
pingService := &ping.Service{}
return pingv1connect.NewPingServiceHandler(
pingService,
compress1KB,
)
}