mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 12:43:39 +09:00
refactor: rename packages
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// 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,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user