Files
gitdts/routers/api/actions/grpc/ping.go
2022-12-06 13:44:23 +08:00

22 lines
390 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/actions-proto-go/ping/v1/pingv1connect"
)
func PingRoute() (string, http.Handler) {
pingService := &ping.Service{}
return pingv1connect.NewPingServiceHandler(
pingService,
compress1KB,
)
}