mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-18 00:49:09 -04:00
22 lines
387 B
Go
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,
|
|
)
|
|
}
|