Reenable queue list to get autoscaler working

This commit is contained in:
Thomas Boerger 2019-02-26 21:41:42 +01:00
parent 7c1f21d872
commit 938c55bd60
No known key found for this signature in database
GPG key ID: 09745AFF9D63C79B

View file

@ -14,6 +14,7 @@ import (
globalbuilds "github.com/drone/drone/handler/api/builds"
"github.com/drone/drone/handler/api/ccmenu"
"github.com/drone/drone/handler/api/events"
"github.com/drone/drone/handler/api/queue"
"github.com/drone/drone/handler/api/repos"
"github.com/drone/drone/handler/api/repos/builds"
"github.com/drone/drone/handler/api/repos/builds/logs"
@ -229,12 +230,12 @@ func (s Server) Handler() http.Handler {
).Get("/cc.xml", ccmenu.Handler(s.Repos, s.Builds, s.System.Link))
})
// r.Route("/queue", func(r chi.Router) {
// r.Use(acl.AuthorizeAdmin)
// r.Get("/", queue.HandleItems(s.Stages))
// r.Post("/", queue.HandleResume(s.Queue))
// r.Delete("/", queue.HandlePause(s.Queue))
// })
r.Route("/queue", func(r chi.Router) {
r.Use(acl.AuthorizeAdmin)
r.Get("/", queue.HandleItems(s.Stages))
// r.Post("/", queue.HandleResume(s.Queue))
// r.Delete("/", queue.HandlePause(s.Queue))
})
r.Route("/user", func(r chi.Router) {
r.Use(acl.AuthorizeUser)