mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-19 23:24:14 +09:00
chore(gRPC): handle requesut for stage data
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
@ -8,11 +8,14 @@ import (
|
||||
"net/http"
|
||||
|
||||
"code.gitea.io/gitea/routers/api/bots/runner"
|
||||
"code.gitea.io/gitea/routers/api/bots/scheduler/queue"
|
||||
"gitea.com/gitea/proto-go/runner/v1/runnerv1connect"
|
||||
)
|
||||
|
||||
func RunnerRoute() (string, http.Handler) {
|
||||
runnerService := &runner.Service{}
|
||||
runnerService := &runner.Service{
|
||||
Scheduler: queue.New(),
|
||||
}
|
||||
|
||||
return runnerv1connect.NewRunnerServiceHandler(
|
||||
runnerService,
|
||||
|
Reference in New Issue
Block a user