mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 01:40:30 +00:00
14 lines
248 B
Go
14 lines
248 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
// Broker handles connections to the embedded message broker.
|
||
|
func Broker(c *gin.Context) {
|
||
|
broker := c.MustGet("broker").(http.Handler)
|
||
|
broker.ServeHTTP(c.Writer, c.Request)
|
||
|
}
|