mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-20 23:54:06 +09:00
fix: remove usage of core
This commit is contained in:
@ -8,14 +8,11 @@ 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{
|
||||
Scheduler: queue.New(),
|
||||
}
|
||||
runnerService := &runner.Service{}
|
||||
|
||||
return runnerv1connect.NewRunnerServiceHandler(
|
||||
runnerService,
|
||||
|
Reference in New Issue
Block a user