mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-30 20:42:54 +09:00
test(ping): add testing for gRPC
This commit is contained in:
@ -24,7 +24,7 @@ func gRPCRouter(r *web.Route, fn grpc.RouteFn) {
|
||||
r.Post(p+"{name}", grpcHandler(h))
|
||||
}
|
||||
|
||||
func Routes(r *web.Route) {
|
||||
func Routes(r *web.Route) *web.Route {
|
||||
// socket connection
|
||||
r.Get("/socket", socketServe)
|
||||
|
||||
@ -33,4 +33,6 @@ func Routes(r *web.Route) {
|
||||
gRPCRouter(r, grpc.HealthRoute)
|
||||
gRPCRouter(r, grpc.PingRoute)
|
||||
gRPCRouter(r, grpc.RunnerRoute)
|
||||
|
||||
return r
|
||||
}
|
||||
|
Reference in New Issue
Block a user