woodpecker/pkg/server/queue.go

12 lines
200 B
Go
Raw Normal View History

2015-04-22 08:00:15 +00:00
package server
import (
2015-05-22 18:37:40 +00:00
"github.com/drone/drone/Godeps/_workspace/src/github.com/gin-gonic/gin"
)
func GetQueue(c *gin.Context) {
queue := ToQueue(c)
items := queue.Items()
c.JSON(200, items)
}