fix: remove useless grpc routers

This commit is contained in:
Jason Song
2022-12-12 17:28:09 +08:00
parent cca23dd4af
commit d4c47acff4
12 changed files with 191 additions and 294 deletions

View File

@@ -6,6 +6,7 @@ package ping
import (
"context"
"fmt"
"net/http"
"code.gitea.io/gitea/modules/log"
@@ -14,6 +15,12 @@ import (
"github.com/bufbuild/connect-go"
)
func NewPingServiceHandler() (string, http.Handler) {
return pingv1connect.NewPingServiceHandler(&Service{})
}
var _ pingv1connect.PingServiceHandler = (*Service)(nil)
type Service struct {
pingv1connect.UnimplementedPingServiceHandler
}